[Unit]
Description=Keepalive Daemon (LVS and VRRP)
After=network-online.target
Wants=network-online.target
# Only start if there is a configuration file
ConditionFileNotEmpty=/etc/keepalived/keepalived.conf
[Service]
Type=forking
KillMode=process
# Read configuration variable file if it is present
EnvironmentFile=-/etc/default/keepalived
ExecStart=/usr/sbin/keepalived $DAEMON_ARGS
ExecReload=/bin/kill -HUP $MAINPID
Hi,
As I have pointed above, this problem is NOT solved! Even the newest version of keepalived package (1.3.2) still lacks "PIDFile=" directive.
$ wget http:// launchpadlibrar ian.net/ 296728051/ keepalived_ 1.3.2-1_ amd64.deb 1.3.2-1_ amd64.deb keepalived lib/systemd/ system/ keepalived. service
$ dpkg-deb --extract keepalived_
$ cat keepalived/
[Unit] Keepalive Daemon (LVS and VRRP) online. target online. target tEmpty= /etc/keepalived /keepalived. conf
Description=
After=network-
Wants=network-
# Only start if there is a configuration file
ConditionFileNo
[Service] =-/etc/ default/ keepalived /usr/sbin/ keepalived $DAEMON_ARGS /bin/kill -HUP $MAINPID
Type=forking
KillMode=process
# Read configuration variable file if it is present
EnvironmentFile
ExecStart=
ExecReload=
[Install] multi-user. target
WantedBy=