[Unit]
Description=Corosync Qdevice Network daemon
Documentation=man:corosync-qnetd
ConditionKernelCommandLine=!nocluster
Requires=network-online.target
After=network-online.target

[Service]
EnvironmentFile=-@INITCONFIGDIR@/corosync-qnetd
ExecStart=@BINDIR@/corosync-qnetd $COROSYNC_QNETD_OPTIONS
Type=forking
Restart=on-abnormal
# Uncomment and set user who should be used for executing qnetd
#User=coroqnetd
RuntimeDirectory=corosync-qnetd
RuntimeDirectoryMode=0770

[Install]
WantedBy=multi-user.target
