Dienste (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 24: Zeile 24:
sudo update-rc.d tomcat7 remove
sudo update-rc.d tomcat7 remove
</pre>
</pre>
[http://manpages.ubuntu.com/manpages/trusty/en/man8/update-rc.d.8.html http://manpages.ubuntu.com/manpages/trusty/en/man8/update-rc.d.8.html]


== systemd ==
== systemd ==
Zeile 38: Zeile 36:


[https://gist.github.com/miglen/5590986 https://gist.github.com/miglen/5590986]
[https://gist.github.com/miglen/5590986 https://gist.github.com/miglen/5590986]
[http://manpages.ubuntu.com/manpages/trusty/en/man8/update-rc.d.8.html http://manpages.ubuntu.com/manpages/trusty/en/man8/update-rc.d.8.html]




Zurück zu [[Ubuntu]]
Zurück zu [[Ubuntu]]

Version vom 26. Mai 2016, 18:05 Uhr

SysVinit

Script anlegen

sudo nano /etc/init.d/tomcat7
sudo chmod a+x /etc/init.d/tomcat7

Datei:Tomcat7.sh

Script beim Systemstart ausführen

Hinzufügen:

sudo update-rc.d tomcat7 defaults 80 10

Entfernen:

sudo update-rc.d tomcat7 remove

systemd

sudo systemctl [BEFEHL] [UNIT.service] 

Links

https://wiki.ubuntuusers.de/Dienste/

https://gist.github.com/miglen/5590986

http://manpages.ubuntu.com/manpages/trusty/en/man8/update-rc.d.8.html


Zurück zu Ubuntu