Files
apostol-dm/auto/unit.service
Преподобный Ален 6c03ba4cd2 Added systemd support.
2025-05-03 22:06:54 +03:00

22 lines
567 B
Desktop File

[Unit]
Description=Deal Module
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/dm.pid
# dm will fail to start if /run/dm.pid already exists but has the wrong
# SELinux context. This might happen when running `dm -t` from the cmdline.
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621
ExecStartPre=/usr/bin/rm -f /run/dm.pid
ExecStartPre=/usr/sbin/dm -t
ExecStart=/usr/sbin/dm
ExecReload=/bin/kill -s HUP $MAINPID
KillSignal=SIGQUIT
TimeoutStopSec=5
KillMode=mixed
PrivateTmp=true
[Install]
WantedBy=multi-user.target