File: nethack-common.init

package info (click to toggle)
nethack 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 19,748 kB
  • sloc: ansic: 250,504; cpp: 13,617; yacc: 2,872; perl: 1,388; lex: 581; sh: 487; awk: 90; makefile: 62; lisp: 15; sed: 11
file content (35 lines) | stat: -rw-r--r-- 907 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
### BEGIN INIT INFO
# Provides:          nethack-common
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Nethack save-file recovery script for Debian
# Description:       Recovers Nethack save-files on start
### END INIT INFO
#
# Ben Gertzfield (che@debian.org) 29 July 1997
# Copyright 1997 Ben Gertzfield. This script is released under the
# GNU General Public License, version 2 or later.

. /lib/lsb/init-functions

PATH=/bin:/usr/bin:/sbin:/usr/sbin

set -e

case "$1" in
  start)
    # Has the nethack package been removed?
    test -x /usr/lib/games/nethack/recover-all || exit 0
    exec /usr/lib/games/nethack/recover-all
    ;;
  stop|reload|restart|force-reload|status)
    ;;
  *)
    N=/etc/init.d/nethack-common 
    echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
    exit 1
    ;;
esac