~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to tools/ajaxterm/configure.initd.gentoo

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-01-21 11:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110121114806-v8fvnnl6az4m4ohv
Tags: upstream-2011.1~bzr597
ImportĀ upstreamĀ versionĀ 2011.1~bzr597

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/sbin/runscript
 
2
 
 
3
# AjaxTerm Gentoo script, 08 May 2006 Mark Gillespie 
 
4
 
 
5
DAEMON=%(bin)s/ajaxterm
 
6
PORT=%(port)s
 
7
PIDFILE=/var/run/ajaxterm.pid 
 
8
 
 
9
depend()
 
10
{
 
11
    need net
 
12
}
 
13
 
 
14
start()
 
15
{
 
16
    ebegin "Starting AjaxTerm on port $PORT"
 
17
    start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- --daemon --port=$PORT --uid=nobody
 
18
    eend $?
 
19
}
 
20
 
 
21
stop()
 
22
{
 
23
    ebegin "Stopping AjaxTerm"
 
24
    start-stop-daemon  --stop --pidfile $PIDFILE 
 
25
    rm -f $PIDFILE 
 
26
    eend $?
 
27
}