Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 578714a

Browse files
committed
Packages: moved systemd service to forking on rpm-based distros
Closes: #915 Closes: #1178
1 parent 35a572c commit 578714a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/rpm/rpmbuild/SOURCES/unit.service

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ Wants=network-online.target
1515
After=network-online.target
1616

1717
[Service]
18-
Type=simple
18+
Type=forking
1919
Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
20-
ExecStart=/usr/sbin/unitd $UNITD_OPTIONS --no-daemon
20+
ExecStart=/usr/sbin/unitd $UNITD_OPTIONS
2121
ExecReload=
2222
RuntimeDirectory=unit
2323
RuntimeDirectoryMode=0755
24+
PIDFile=/run/unit/unit.pid
2425

2526
[Install]
2627
WantedBy=multi-user.target

0 commit comments

Comments
 (0)