Skip to content

Commit

Permalink
Packages: moved systemd service to forking on rpm-based distros
Browse files Browse the repository at this point in the history
Closes: #915
Closes: #1178
  • Loading branch information
thresheek committed Jun 21, 2024
1 parent 64f4c78 commit 7a3b3fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/rpm/rpmbuild/SOURCES/unit.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ Wants=network-online.target
After=network-online.target

[Service]
Type=simple
Type=forking
Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
ExecStart=/usr/sbin/unitd $UNITD_OPTIONS --no-daemon
ExecStart=/usr/sbin/unitd $UNITD_OPTIONS
ExecReload=
RuntimeDirectory=unit
RuntimeDirectoryMode=0755
PIDFile=/run/unit/unit.pid

[Install]
WantedBy=multi-user.target

0 comments on commit 7a3b3fc

Please sign in to comment.