-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[Unit]
# NOTE: To set up, copy to /etc/systemd/system and change
# the "User" value and "ExecStart" path below!
# Then see comments in the timer unit file to activate that.
#
# You can also run it manually (but not "enable") like
# systemctl start --no-block [email protected]
# which should ensure that a copy only runs once at a time
# (note that as a oneshot service, it "blocks" in "activating"
# state until finished).
#
# You can revise known unit definitions (and their activity) with:
# systemctl list-units 'backup-github@*' --all
# or view more detailed status and last-log summaries with:
# systemctl status -l -n30 'backup-github@*' --all
#
# Wraps instance scripts e.g. "ghbu-Username.sh"
# as [email protected]
Description=GitHub backup routine for %i (script service)
After=network.target local-fs.target
[Service]
ExecStart=/export/home/jim/github-backup/%i.sh
Type=oneshot
User=jim
SyslogIdentifier=%N
Restart=on-failure
# Let intermittent errors like network availability back off:
RestartSec=10m
[Install]
# Started by a timer unit