mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-26 08:35:02 +08:00
13 lines
340 B
Bash
Executable file
13 lines
340 B
Bash
Executable file
#! /usr/bin/env bash
|
|
# vim: set filetype=sh ts=4 sw=4 sts=4 et:
|
|
if [ "$(uname -s)" = Linux ] ; then
|
|
test -x /etc/init.d/ssh && /etc/init.d/ssh start
|
|
test -x /etc/init.d/syslog-ng && /etc/init.d/syslog-ng start
|
|
else
|
|
# for BSD
|
|
test -x /etc/rc.d/sshd && /etc/rc.d/sshd onestart
|
|
fi
|
|
|
|
while : ; do
|
|
sleep 3600
|
|
done
|