From a5317d0b60b2dad4dcf4629b5594bb0dd6d8cb9f Mon Sep 17 00:00:00 2001 From: Zen Date: Thu, 17 Mar 2022 17:45:48 -0600 Subject: [PATCH] small service updates --- recipes/ao.sh | 2 +- resources/service-templates/git | 18 ++++++++++++++++++ resources/service-templates/tor | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 resources/service-templates/git diff --git a/recipes/ao.sh b/recipes/ao.sh index 15106db..643fa9e 100755 --- a/recipes/ao.sh +++ b/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" diff --git a/resources/service-templates/git b/resources/service-templates/git new file mode 100644 index 0000000..173c46a --- /dev/null +++ b/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 diff --git a/resources/service-templates/tor b/resources/service-templates/tor index 78f78a3..4b4a2bd 100644 --- a/resources/service-templates/tor +++ b/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