Changes

From Amahi Wiki
Jump to: navigation, search
=== Add Server (Service) Feature ===
* Install, Enable, and StartCheck if service is active: install systemctl is-m 755 appname /etc/init.d/; /sbin/chkconfig appname on; /sbin/active service appname start;* Uninstall, Enable/Disable, and Stop /sbinstart/stop service appname stop;: /sbin/chkconfig appname off;systemctl enable --now service rm systemctl disable --f /etc/init.d/appname;now service* Enable and StartReload system daemon
echo Reloading systemctl daemon;
systemctl daemon-reload;
echo Enabling appname * Start/Stop/Restart app service; systemctl enable appname.service;
echo Starting appname service;
systemctl start appname.service;
* Disable and Stop
echo Stopping appname service;
systemctl stop appname.service;
echo Disabling Restarting appname service; systemctl disable restart appname.service; echo Reloading systemctl daemon; systemctl daemon-reload;* Change service run level, start, and stop priority:<br \>
: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
12,424

edits