Changes

From Amahi Wiki
Jump to: navigation, search
find . -name .htaccess -exec mv {} {}.tmp \;
=== Add Server (Service) Feature ===
* Install Script(Fedora):
cat > installscript.sh << 'EOF'
install -m 755 appname /etc/init.d/;
cd ..;
rm -rf elevated;
* Install Script (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(Fedora):
mkdir elevated;
cd elevated;
cd ..;
rm -rf elevated;
* Example [[Init_scripts|Init Scripts]] Uninstall Script (servicesUbuntu): mkdir elevated; cd elevated; cat > uninstallscript.sh << 'EOF' service appname stop; update-rc.d -f appname remove; rm -f /etc/init.d/appname; EOF chmod 755 uninstallscript.sh; sudo ./uninstallscript.sh; cd ..; rm -rf elevated;
* 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).
12,424

edits