dirty but handy way to launch services
This commit is contained in:
parent
8879590cb5
commit
7c66548095
1 changed files with 7 additions and 0 deletions
|
@ -34,4 +34,11 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# dirty hack for unhappy services
|
||||||
|
for jail in `seq 0 6`; do screen -p $jail -X stuff "/usr/local/bin/nrpe2 restart^M"; done
|
||||||
|
screen -p ftp -X stuff "service vsftpd_ipv6 start^M"
|
||||||
|
screen -p mail -X stuff "service qmailsmtpd start^M"
|
||||||
|
|
||||||
|
# attach to freshly-created screen
|
||||||
screen -r $session -p 0
|
screen -r $session -p 0
|
||||||
|
|
Loading…
Reference in a new issue