From b79cd67b57072675bb8c3078747de358712c205c Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Sat, 18 Oct 2014 11:59:40 +0000 Subject: really fix init scripts --- homepanel-control | 8 +++++--- homepanel.initd | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 homepanel.initd 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 old mode 100644 new mode 100755 index 32ded00..9994db4 --- 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 -- cgit v1.2.3