December 2018
Beginner
826 pages
22h 54m
English
When you instruct systemd to start or stop a unit, what you're actually doing is running the ExecStart or ExecStop portions of its unit file.
Taking postfix as our example, its unit file looks like this:
# /usr/lib/systemd/system/postfix.service[Unit]Description=Postfix Mail Transport AgentAfter=syslog.target network.targetConflicts=sendmail.service exim.service[Service]Type=forkingPIDFile=/var/spool/postfix/pid/master.pidEnvironmentFile=-/etc/sysconfig/networkExecStartPre=-/usr/libexec/postfix/aliasesdbExecStartPre=-/usr/libexec/postfix/chroot-updateExecStart=/usr/sbin/postfix startExecReload=/usr/sbin/postfix reloadExecStop=/usr/sbin/postfix stop[Install]WantedBy=multi-user.target
Here we can see that, when we issue a
Read now
Unlock full access