File: xterm

package info (click to toggle)
lg-issue27 4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,920 kB
  • ctags: 134
  • sloc: makefile: 37; sh: 36
file content (31 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (5)
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
#! /bin/sh
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:	@(#)skeleton  1.6  11-Nov-1996  miquels@cistron.nl
#
set -e

case "$1" in
  start)
    start-stop-daemon --start --verbose --pidfile /var/run/xterm.pid --exec /usr/bin/X11/X -- -quiet -indirect weber &
    ;;
  stop)
    start-stop-daemon --stop --verbose --pidfile /var/run/xterm.pid --exec /usr/bin/X11/X
    ;;
  reload)
    # echo "Reloading $NAME configuration files"
    # start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
    ;;
  *)
    # echo "Usage: /etc/init.d/$NAME {start|stop|reload}"
    echo "Usage: /etc/init.d/xterm {start|stop}"
    exit 1
    ;;
esac

exit 0