systemd (zio-backup): add service file for zio-backup
This commit is contained in:
parent
523304f233
commit
b79c79e835
2 changed files with 22 additions and 0 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -20,6 +20,15 @@
|
||||||
/etc/skel/*
|
/etc/skel/*
|
||||||
!/etc/skel/.bashrc
|
!/etc/skel/.bashrc
|
||||||
|
|
||||||
|
# /etc/systemd/
|
||||||
|
!/etc/systemd/
|
||||||
|
/etc/systemd/*
|
||||||
|
|
||||||
|
# /etc/systemd/system/
|
||||||
|
!/etc/systemd/system/
|
||||||
|
/etc/systemd/system/*
|
||||||
|
!/etc/systemd/system/zio-backup.service
|
||||||
|
|
||||||
# /usr/
|
# /usr/
|
||||||
!/usr/
|
!/usr/
|
||||||
/usr/*
|
/usr/*
|
||||||
|
|
13
etc/systemd/system/zio-backup.service
Normal file
13
etc/systemd/system/zio-backup.service
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Zio Backup
|
||||||
|
After=network.target network-online.target
|
||||||
|
Requires=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=notify
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
ExecStart=/usr/local/bin/zio-backup
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue