Browse Source

small service updates

main
Zen 2 years ago
parent
commit
a5317d0b60
  1. 2
      recipes/ao.sh
  2. 18
      resources/service-templates/git
  3. 2
      resources/service-templates/tor

2
recipes/ao.sh

@ -290,7 +290,7 @@ build_service_from_template lightning "LIGHTNINGD=`which lightningd`"
activate_service lightning
say ""
build_service_from_template ao "NODE=`which node`" "AO=$AO" "NODE_PARAMS=$NODE_PARAMS"
build_service_from_template ao "AO=$AO" "NODE_PARAMS=$NODE_PARAMS" "NODE=`which node`"
activate_service ao
say "this should be nginx"

18
resources/service-templates/git

@ -0,0 +1,18 @@
[Unit]
Description=Git Daemon
[Service]
ExecStart=/usr/bin/git daemon --reuseaddr --base-path=/srv/git/ /srv/git/
Restart=always
RestartSec=500ms
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=git-daemon
User=USER
Group=USER
[Install]
WantedBy=multi-user.target

2
resources/service-templates/tor

@ -5,7 +5,7 @@ After=syslog.target network.target nss-lookup.target
[Service]
Type=notify
NotifyAccess=all
ExecStartPre=+/bin/chown USER:USER /var/lib/tor
ExecStartPre=+/bin/chown -R USER:USER /var/lib/tor
ExecStartPre=TORPATH -f TORRCPATH --verify-config
ExecStart=TORPATH -f TORRCPATH

Loading…
Cancel
Save