Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Add a custom service
(view source)
Revision as of 22:04, 15 August 2015
No change in size
,
22:04, 15 August 2015
→Start at the boot time a custom service
Line 34:
Line 34:
echo 'Starting service…' >&2
echo 'Starting service…' >&2
local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
−
su -c "$CMD"
$RUNAS
> "$PIDFILE"
+
su
-s /bin/sh $RUNAS
-c "$CMD" > "$PIDFILE"
# Try with this command line instead of above if not workable
# Try with this command line instead of above if not workable
−
# su
-s /bin/sh $RUNAS
-c "$CMD" > "$PIDFILE"
+
# su -c "$CMD"
$RUNAS
> "$PIDFILE"
sleep 2
sleep 2
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
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
Search