Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Add a custom service
(view source)
Revision as of 10:38, 16 August 2015
363 bytes removed
,
10:38, 16 August 2015
→Start at the boot time a custom service
Line 60:
Line 60:
}
}
−
uninstall() {
+
status() {
−
echo -n "Are you really sure you want to uninstall this service? That cannot be undone. [yes|No] "
−
local SURE
−
read SURE
−
if [ "$SURE" = "yes" ]; then
−
stop
−
rm -f "$PIDFILE"
−
echo "Notice: log file is not be removed: '$LOGFILE'" >&2
−
update-rc.d -f <NAME> remove
−
rm -fv "$0"
−
fi
−
}
−
−
status() {
printf "%-50s" "Checking $NAME..."
printf "%-50s" "Checking $NAME..."
if [ -f $PIDFILE ]; then
if [ -f $PIDFILE ]; then
Line 97:
Line 84:
status)
status)
status
status
−
;;
−
uninstall)
−
uninstall
;;
;;
restart)
restart)
Line 106:
Line 90:
;;
;;
*)
*)
−
echo "Usage: $0 {start|stop|status|restart
|uninstall
}"
+
echo "Usage: $0 {start|stop|status|restart}"
esac
esac
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