Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Jdownloader2
(view source)
Revision as of 09:32, 17 August 2015
110 bytes removed
,
09:32, 17 August 2015
→start at boot time
Line 76:
Line 76:
PIDFILE=/var/run/$NAME.pid
PIDFILE=/var/run/$NAME.pid
−
LOGFILE=/
var
/
log/$NAME.log
+
LOGFILE=/
dev
/
null
start() {
start() {
Line 87:
Line 87:
su -s /bin/sh $RUNAS -c "$CMD" > "$PIDFILE"
su -s /bin/sh $RUNAS -c "$CMD" > "$PIDFILE"
−
# Try with this command line instead of above if not workable
+
sleep
5
−
# su -c "$CMD" $RUNAS > "$PIDFILE"
−
−
sleep
2
PID=$(cat $PIDFILE)
PID=$(cat $PIDFILE)
if pgrep -u $RUNAS -f $NAME > /dev/null
if pgrep -u $RUNAS -f $NAME > /dev/null
Stephdl
Administrators
5,576
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version