Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
224099a1
Commit
224099a1
authored
Apr 02, 2000
by
Niels Möller
Browse files
*** empty log message ***
Rev: ChangeLog:1.173 Rev: contrib/lshd.debian.init:1.1
parent
e30f9d62
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
224099a1
2000-04-01 Niels Mller <nisse@cuckoo.localdomain>
* src/unix_user.c (do_exec_shell): Fixed MAX_ENV check.
2000-03-29 Niels Mller <nisse@cuckoo.localdomain>
* src/unix_user.c (do_lookup_user): Improved shadow support,
...
...
contrib/lshd.debian.init
0 → 100644
View file @
224099a1
#! /bin/sh
#
# Debian style init script to start and stop the lshd daemon.
#
# NOTE: This script is for the default installation of lsh as built
# from the "upstream" source. A proper debian package would use
# somewhat different conventions.
#
# Written by Niels Mller
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON
=
/usr/local/sbin/lshd
NAME
=
lshd
DESC
=
"secure shell service"
PIDFILE
=
/var/run/
$NAME
.pid
# Use this port
# The default for lshd is whatever is lisetn in /etc/services.
# When using both lsh and some ssh1 implementation, it might make
# sense to use a different port.
PORT
=
22
set
-e
if
[
!
-x
$DAEMON
\
-o
!
-f
/etc/lsh_host_key
\
-o
!
-f
/etc/lsh_host_key.pub
]
then
echo
"lshd not installed properly"
>
&2
exit
1
fi
case
"
$1
"
in
start
)
echo
-n
"Starting
$DESC
: "
start-stop-daemon
--start
--quiet
--pidfile
$PIDFILE
\
--exec
$DAEMON
\
--
--pid-file
$PIDFILE
--daemonic
--port
$PORT
echo
"
$NAME
."
;;
stop
)
echo
-n
"Stopping
$DESC
: "
start-stop-daemon
--stop
--quiet
--pidfile
$PIDFILE
\
--exec
$DAEMON
echo
"
$NAME
."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload
)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo
-n
"Restarting
$DESC
: "
start-stop-daemon
--stop
--quiet
--pidfile
$PIDFILE
\
--exec
$DAEMON
sleep
1
start-stop-daemon
--start
--quiet
--pidfile
$PIDFILE
\
--exec
$DAEMON
\
--
--pid-file
$PIDFILE
--daemonic
--port
$PORT
echo
"
$NAME
."
;;
*
)
N
=
/etc/init.d/
$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo
"Usage:
$N
{start|stop|restart|force-reload}"
>
&2
exit
1
;;
esac
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment