Posted 2013-07-04 with tags linux, Systemd

While setting up cron and msmtp I needed to make sure crond was started with the '-S' argument to ensure cron used sendmail instead of syslog. Arch has recently moved to systemd, so the change I needed to make necessitated editing the systemd unit file for cronie:

kjones /usr/lib/systemd/system $ sudo vim cronie.service
Description=Periodic Command Scheduler

ExecStart=/usr/bin/crond -S
ExecReload=/bin/kill -HUP $MAINPID


and reloading the unit file for the change to take effect:

kjones /usr/lib/systemd/system $ sudo systemctl reload cronie

and finally checking the status of cronie:

kjones /usr/lib/systemd/system $ sudo systemctl status cronie
[sudo] password for kjones:
cronie.service - Periodic Command Scheduler
   Loaded: loaded (/usr/lib/systemd/system/cronie.service; enabled)
  Drop-In: /usr/lib/systemd/system/cronie.service.d
   Active: active (running) since Thu 2013-07-04 02:27:19 PDT; 17min ago
 Main PID: 6100 (crond)
   CGroup: name=systemd:/system/cronie.service
           â100 /usr/bin/crond -n -m /usr/bin/msmtp -t