# HG changeset patch # User František Kučera # Date 1555614993 -7200 # Node ID 9a2e2812c31912765934ff696ba31818d00d6b75 # Parent 6207c211aafdb1710344b2aa05cb0e4b22a3a5a9 systemd services diff -r 6207c211aafd -r 9a2e2812c319 systemd/vcs-backup-clone.service --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemd/vcs-backup-clone.service Thu Apr 18 21:16:33 2019 +0200 @@ -0,0 +1,9 @@ +[Unit] +Description = VCS Backup: clone +After = network.target + +[Service] +ExecStart = /usr/local/bin/vcs-backup.sh serverStartCloneService + +[Install] +WantedBy = multi-user.target diff -r 6207c211aafd -r 9a2e2812c319 systemd/vcs-backup-subvolume.service --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemd/vcs-backup-subvolume.service Thu Apr 18 21:16:33 2019 +0200 @@ -0,0 +1,9 @@ +[Unit] +Description = VCS Backup: subvolume +After = network.target + +[Service] +ExecStart = /usr/local/bin/vcs-backup.sh serverStartSubvolumeService + +[Install] +WantedBy = multi-user.target diff -r 6207c211aafd -r 9a2e2812c319 systemd/vcs-backup-web-hg.service --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemd/vcs-backup-web-hg.service Thu Apr 18 21:16:33 2019 +0200 @@ -0,0 +1,18 @@ +[Unit] +Description = Mercurial +After = syslog.target network.target + +[Service] +User=vcs-backup +ExecStart = /usr/bin/hg serve --web-conf /mnt/data/etc/hg-serve.cfg --address 127.0.0.1 --port 16169 +SuccessExitStatus = 255 + +[Install] +WantedBy = multi-user.target + + +# Configura in etc/hg-serve.cfg: +# [paths] +# / = /mnt/data/current/hg/* +# [web] +# style = gitweb