Changes

From Amahi Wiki
Jump to: navigation, search
=== Add Server (Service) Feature ===
* Install, Enable, and Start
:Fedora:
install -m 755 appname /etc/init.d/;
/sbin/chkconfig appname on;
/sbin/service appname start;
:Ubuntu:
install -m 755 appname /etc/init.d/;
update-rc.d appname defaults;
service appname start;
* Uninstall, Disable, and Stop
:Fedora:
/sbin/service appname stop;
/sbin/chkconfig appname off;
rm -f /etc/init.d/appname;
:Ubuntu:
service appname stop;
update-rc.d -f appname remove;
systemctl daemon-reload;
* Change service run level, start, and stop priority:
:Edit the service, i.e. ''/etc/init.d/adito'' and change the parameters (Run level: 0-6, start priority: 1-99, and stop priority: 1-99).
# chkconfig: 2345 56 26
:Execute the following command as '''root''' user:
/sbin/chkconfig adito resetpriorities
12,424

edits