rebuild systemd to use timers.target and BINDIR templates

This commit is contained in:
tengel 2024-03-20 09:32:36 -05:00
parent 12caa51fb5
commit 8843922cee
7 changed files with 33 additions and 82 deletions

View file

@ -0,0 +1,23 @@
#
# /usr/lib/systemd/system/petrified.service
#
# This unit is intended for out-of-the-box turnkey operation
# and runs as the root user using the predefined defaults for
# files and directories in /etc/petrified.conf
#
# The provided petrified.timer unit is what should be enabled,
# not this service unit file directly:
#
# systemctl start petrified.timer
# systemctl enable petrified.timer
#
[Unit]
Description=Run petrified in system mode
After=network-online.target
Requisite=network-online.target
[Service]
Type=simple
ExecStart=@BINDIR@/petrified -c /etc/petrified.conf