0 Mitglieder und 1 Gast betrachten dieses Thema.
ja sicher.. ist doch schon ein zweiter platzhalter #ExecStart=voller Pfad zur Anwendung vorhanden.befehl eintragen und die # (rem) weg.kannst nach dem muster noch weitere anlegen.
ExecStart=/usr/bin/pkill google-chrome
$ systemctl status es-shutdown● es-shutdown.service - shutdown reboot action script E-Soft www.ehlertronic.de Loaded: loaded (/lib/systemd/system/es-shutdown.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mo 2016-09-19 17:58:37 CEST; 1min 20s ago Process: 4489 ExecStart=/usr/bin/pkill google-chrome (code=exited, status=1/FAILURE) Process: 4486 ExecStart=/usr/bin/pkill rygel (code=exited, status=0/SUCCESS) Process: 4482 ExecStart=/bin/sh -c echo "shutdown läuft" >> /home/helmut/shutdown.log (code=exited, status=0/SUCCESS) Main PID: 4489 (code=exited, status=1/FAILURE)Sep 19 17:58:37 K52Jc-LinuxMint18 systemd[1]: Starting shutdown reboot action script E-Soft www.ehlertronic.de...Sep 19 17:58:37 K52Jc-LinuxMint18 systemd[1]: es-shutdown.service: Main process exited, code=exited, status=1/FAILURESep 19 17:58:37 K52Jc-LinuxMint18 systemd[1]: Failed to start shutdown reboot action script E-Soft www.ehlertronic.de.Sep 19 17:58:37 K52Jc-LinuxMint18 systemd[1]: es-shutdown.service: Unit entered failed state.Sep 19 17:58:37 K52Jc-LinuxMint18 systemd[1]: es-shutdown.service: Failed with result 'exit-code'.
google-chrome -s
exit google-chrome
~ $ exit google-chromeAbgemeldet-bash: exit: google-chrome: Ein numerischer Parameter ist erforderlich.
exit firefox
Firefox, Chrome, Leute, was hat das noch mit dem ursprünglichen Thema zu tun ...(?)