1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/systemd/vcs-backup-clone.service Thu Apr 18 21:16:33 2019 +0200
1.3 @@ -0,0 +1,9 @@
1.4 +[Unit]
1.5 +Description = VCS Backup: clone
1.6 +After = network.target
1.7 +
1.8 +[Service]
1.9 +ExecStart = /usr/local/bin/vcs-backup.sh serverStartCloneService
1.10 +
1.11 +[Install]
1.12 +WantedBy = multi-user.target
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/systemd/vcs-backup-subvolume.service Thu Apr 18 21:16:33 2019 +0200
2.3 @@ -0,0 +1,9 @@
2.4 +[Unit]
2.5 +Description = VCS Backup: subvolume
2.6 +After = network.target
2.7 +
2.8 +[Service]
2.9 +ExecStart = /usr/local/bin/vcs-backup.sh serverStartSubvolumeService
2.10 +
2.11 +[Install]
2.12 +WantedBy = multi-user.target
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/systemd/vcs-backup-web-hg.service Thu Apr 18 21:16:33 2019 +0200
3.3 @@ -0,0 +1,18 @@
3.4 +[Unit]
3.5 +Description = Mercurial
3.6 +After = syslog.target network.target
3.7 +
3.8 +[Service]
3.9 +User=vcs-backup
3.10 +ExecStart = /usr/bin/hg serve --web-conf /mnt/data/etc/hg-serve.cfg --address 127.0.0.1 --port 16169
3.11 +SuccessExitStatus = 255
3.12 +
3.13 +[Install]
3.14 +WantedBy = multi-user.target
3.15 +
3.16 +
3.17 +# Configura in etc/hg-serve.cfg:
3.18 +# [paths]
3.19 +# / = /mnt/data/current/hg/*
3.20 +# [web]
3.21 +# style = gitweb