rebuild systemd to use timers.target and BINDIR templates
This commit is contained in:
parent
de91e17240
commit
1ef76d3e40
7 changed files with 33 additions and 82 deletions
23
systemd/petrified-user.service.in
Normal file
23
systemd/petrified-user.service.in
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# /usr/lib/systemd/user/petrified.service
|
||||
#
|
||||
# This unit is intended for out-of-the-box turnkey operation
|
||||
# and runs as the user using the predefined defaults for
|
||||
# files and directories in $HOME/.petrifiedrc
|
||||
#
|
||||
# The provided petrified.timer unit is what should be enabled,
|
||||
# not this service unit file directly:
|
||||
#
|
||||
# systemctl --user start petrified.timer
|
||||
# systemctl --user enable petrified.timer
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Run petrified as %u
|
||||
After=network-online.target
|
||||
Requisite=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@BINDIR@/petrified -c "%h/.petrifiedrc"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue