Use "systemctl" instead of "service" to manage services
Raphaël Hertzog
4 years ago
0 | 0 |
[Desktop Entry]
|
1 | 1 |
Name=metasploit framework
|
2 | 2 |
Encoding=UTF-8
|
3 | |
Exec=/usr/share/kali-menu/exec-in-shell "service postgresql start && msfdb init && msfconsole"
|
|
3 |
Exec=/usr/share/kali-menu/exec-in-shell "systemctl start postgresql && msfdb init && msfconsole"
|
4 | 4 |
Icon=kali-metasploit-framework
|
5 | 5 |
StartupNotify=false
|
6 | 6 |
Terminal=true
|
0 | 0 |
[Desktop Entry]
|
1 | 1 |
Name=Nessus start
|
2 | 2 |
Encoding=UTF-8
|
3 | |
Exec=/usr/share/kali-menu/exec-in-shell "/etc/init.d/nessusd start"
|
|
3 |
Exec=/usr/share/kali-menu/exec-in-shell "systemctl start nessusd && systemctl --no-pager status nessusd"
|
4 | 4 |
Icon=kali-nessus
|
5 | 5 |
StartupNotify=false
|
6 | 6 |
Terminal=true
|
0 | 0 |
[Desktop Entry]
|
1 | 1 |
Name=Nessus stop
|
2 | 2 |
Encoding=UTF-8
|
3 | |
Exec=/usr/share/kali-menu/exec-in-shell "/etc/init.d/nessusd stop"
|
|
3 |
Exec=/usr/share/kali-menu/exec-in-shell "systemctl stop nessusd && systemctl --no-pager status nessusd"
|
4 | 4 |
Icon=kali-nessus
|
5 | 5 |
StartupNotify=false
|
6 | 6 |
Terminal=true
|
0 | 0 |
[Desktop Entry]
|
1 | 1 |
Name=xplico start
|
2 | 2 |
Encoding=UTF-8
|
3 | |
Exec=/usr/share/kali-menu/exec-in-shell "service xplico start"
|
|
3 |
Exec=/usr/share/kali-menu/exec-in-shell "systemctl start xplico && systemctl --no-pager status xplico"
|
4 | 4 |
Icon=kali-xplico
|
5 | 5 |
StartupNotify=false
|
6 | 6 |
Terminal=true
|
0 | 0 |
[Desktop Entry]
|
1 | 1 |
Name=xplico stop
|
2 | 2 |
Encoding=UTF-8
|
3 | |
Exec=/usr/share/kali-menu/exec-in-shell "service xplico stop"
|
|
3 |
Exec=/usr/share/kali-menu/exec-in-shell "systemctl stop xplico && systemctl --no-pager status xplico"
|
4 | 4 |
Icon=kali-xplico
|
5 | 5 |
StartupNotify=false
|
6 | 6 |
Terminal=true
|
0 | 0 |
#!/bin/sh
|
|
1 |
echo "> Executing “$@”"
|
1 | 2 |
eval $@
|
2 | 3 |
USER=${USER:-$(whoami)}
|
3 | 4 |
SHELL=${SHELL:-$(getent passwd $USER|cut -d: -f7)}
|