Re: init scripts [was: If Not Systemd, then What?]
On 18/11/14 12:54, Miles Fidelman wrote:
> <snipped> I left out sendmail, but I just checked, and
> guess what, no systemd service file in upstream).
xy?
Did you try Google?
https://www.google.com/search?q=systemd+%2B%22sendmail.service%22&ie=utf-8&oe=utf-8&aq=t&&channel=sb
>
> What do they know?
>
> Miles Fidelman
>
>
e.g. sendmail.service:-
[Unit]
Description=Sendmail Mail Transport Agent
After=syslog.target network.target
[Service]
Environment=QUEUE=1h
EnvironmentFile=/etc/sysconfig/sendmail
Type=forking
ExecStart=/usr/sbin/sendmail -bd -q $QUEUE $SENDMAIL_OPTARG
[Install]
WantedBy=multi-user.target
Useful Refs:-
https://wiki.archlinux.org/index.php/sendmail#Start_on_boot
https://wiki.archlinux.org/index.php/Systemd/Timers
http://0pointer.de/blog/projects/systemd-for-admins-2.html
https://www.lisenet.com/2014/create-a-systemd-service-to-send-automatic-emails-when-arch-linux-restarts/
Reply to: