Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
=== Add Server (Service) Feature ===
* Install Script, Enable, and Start
Fedora:
cat > installscript.sh << 'EOF'
install -m 755 appname /etc/init.d/;
/sbin/chkconfig appname on;
/sbin/service appname start;
EOF
chmod 755 installscript.sh;
sudo ./installscript.sh;
cd ..;
rm -rf elevated;
Ubuntu:
cat > installscript.sh << 'EOF'
install -m 755 appname /etc/init.d/;
update-rc.d appname defaults;
service appname start;
EOF chmod 755 installscript.sh; sudo ./installscript.sh; cd ..; rm -rf elevated;* Uninstall Script, Disable, and Stop
Fedora:
mkdir elevated;
cd elevated;
cat > uninstallscript.sh << 'EOF'
/sbin/service appname stop;
/sbin/chkconfig appname off;
rm -f /etc/init.d/appname;
EOF
chmod 755 uninstallscript.sh;
sudo ./uninstallscript.sh;
cd ..;
rm -rf elevated;
Ubuntu:
mkdir elevated;
cd elevated;
cat > uninstallscript.sh << 'EOF'
service appname stop;
update-rc.d -f appname remove;
rm -f /etc/init.d/appname;
* Enable and Start (Fedora) EOFecho Reloading systemctl daemon; chmod 755 uninstallscriptsystemctl daemon-reload; echo Enabling appname service; systemctl enable appname.shservice; echo Starting appname service; sudo systemctl start appname./uninstallscriptservice;* Disable and Stop (Fedora) echo Stopping appname service; systemctl stop appname.shservice; cd .echo Disabling appname service; systemctl disable appname.service; echo Reloading systemctl daemon; rm systemctl daemon-rf elevatedreload;
* 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).
</HTML>' > html/index.html
chown apache:users html/index.html</pre>
* Netboot [[Netboot_template|App Template]]
===Platform Services Feature===
12,424

edits