summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-04-24 16:46:44 +0200
committerOliver Poignant <oliver@poignant.se>2016-04-24 16:46:44 +0200
commitd055d4ba2b5ca3232194c8c507df45d9a31ae9f9 (patch)
tree3d42cf9990e52229930185443cbebad927bef1f8
parent4cdddc56911cd5ef59e8ad20a7b3fa69286876b2 (diff)
downloadGit-Auto-Deploy-d055d4ba2b5ca3232194c8c507df45d9a31ae9f9.zip
Git-Auto-Deploy-d055d4ba2b5ca3232194c8c507df45d9a31ae9f9.tar.gz
Git-Auto-Deploy-d055d4ba2b5ca3232194c8c507df45d9a31ae9f9.tar.bz2
Updated docs with instructions for init script
-rw-r--r--docs/Start automatically on boot.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/Start automatically on boot.md b/docs/Start automatically on boot.md
index 48977a3..17b9eb6 100644
--- a/docs/Start automatically on boot.md
+++ b/docs/Start automatically on boot.md
@@ -20,6 +20,10 @@ Copy the sample init script into ```/etc/init.d/``` and make it executable.
**Important:** The init script assumes that you have ```Git-Auto-Deploy``` installed in ```/opt/Git-Auto-Deploy/``` and that the ```pidfilepath``` config option is set to ```/var/run/git-auto-deploy.pid```. If this is not the case, edit the ```git-auto-deploy``` init script and modify ```DAEMON```, ```PWD``` and ```PIDFILE```.
+**Important:** The init script will run GAD as the ```root``` user by default, which is convenient but not recommended. The most secure way to run GAD is to set up a separate user and modify the init script to run GAD as that user. When running GAD as a user other than root, you will need to make sure that the correct permissions are set on all directories and files that GAD requires access to (such as the path specified in the variable PIDFILE and LOGFIE in the init script).
+
+ that you have ```Git-Auto-Deploy``` installed in ```/opt/Git-Auto-Deploy/``` and that the ```pidfilepath``` config option is set to ```/var/run/git-auto-deploy.pid```. If this is not the case, edit the ```git-auto-deploy``` init script and modify ```DAEMON```, ```PWD``` and ```PIDFILE```.
+
Now you need to add the correct symbolic link to your specific runlevel dir to get the script executed on each start up. On Debian_Sys-V just do;
update-rc.d git-auto-deploy defaults