Skip to content

Commit

Permalink
Merge pull request #14 from ryanjjung/systemd-service
Browse files Browse the repository at this point in the history
Add systemd service unit file
  • Loading branch information
ryanjjung authored Feb 18, 2021
2 parents 5f05c9a + 4e44036 commit 86f4ae3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions retemplate.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
Description=Retemplate (rtpl): Scheduled template rendering
Documentation=https://github.com/ryanjjung/retemplate
After=network-online.target
Wants=network-online.target

[Service]
User=root
Group=root
PIDFile=/var/run/rtpl/rtpl.pid
Type=simple
ExecStart=/usr/local/bin/rtpl -c /etc/retemplate/retemplate.yml -l /var/log/retemplate.log
ExecStop=/bin/kill -TERM ${MAINPID}
Restart=always
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

0 comments on commit 86f4ae3

Please sign in to comment.