diff options
author | Gianni Ceccarelli <dakkar@thenautilus.net> | 2014-10-18 11:59:40 +0000 |
---|---|---|
committer | Gianni Ceccarelli <dakkar@thenautilus.net> | 2014-10-18 12:00:43 +0000 |
commit | b79cd67b57072675bb8c3078747de358712c205c (patch) | |
tree | a12d3b49124bb4904af7866ea1eaa34d7aff4a1d | |
parent | init script fixed (diff) | |
download | HomePanel-b79cd67b57072675bb8c3078747de358712c205c.tar.gz HomePanel-b79cd67b57072675bb8c3078747de358712c205c.tar.bz2 HomePanel-b79cd67b57072675bb8c3078747de358712c205c.zip |
really fix init scripts
-rwxr-xr-x | homepanel-control | 8 | ||||
-rwxr-xr-x[-rw-r--r--] | homepanel.initd | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/homepanel-control b/homepanel-control index 5bc877a..0f31339 100755 --- a/homepanel-control +++ b/homepanel-control @@ -8,7 +8,9 @@ my $basedir = path(__FILE__)->parent->realpath; exit Daemon::Control->new( init_code => <<'INIT', +export SHELL=/bin/bash export PERLBREW_ROOT=/data/perl5 +export PERLBREW_HOME=/home/dakkar/.perlbrew . /data/perl5/etc/bashrc INIT @@ -23,12 +25,12 @@ INIT program_args => [ $basedir->child('homepanel.conf') ], user => 'dakkar', - group => 'dakkar', + group => 'www-data', directory => $basedir, pid_file => $basedir->child('homepanel.pid'), - stderr_file => $basedir->child('homepanel.out'), - stdout_file => $basedir->child('homepanel.err'), + stderr_file => $basedir->child('homepanel.err'), + stdout_file => $basedir->child('homepanel.out'), fork => 2, diff --git a/homepanel.initd b/homepanel.initd index 32ded00..9994db4 100644..100755 --- a/homepanel.initd +++ b/homepanel.initd @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -# Generated at Sat Oct 18 11:38:22 2014 with Daemon::Control 0.001006 +# Generated at Sat Oct 18 11:54:37 2014 with Daemon::Control 0.001006 ### BEGIN INIT INFO # Provides: HomePanel @@ -14,7 +14,9 @@ +export SHELL=/bin/bash export PERLBREW_ROOT=/data/perl5 +export PERLBREW_HOME=/home/dakkar/.perlbrew . /data/perl5/etc/bashrc |