File: jbot

package info (click to toggle)
tkabber 0.9.7-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,593
  • sloc: tcl: 32,453; xml: 1,847; sh: 1,408; makefile: 72
file content (20 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#

# PROVIDE: jbot
# REQUIRE: syslogd

. /etc/rc.subr

name="jbot"
rcvar=$name
command="/usr/pkg/bin/jsend.tcl"
command_interpreter=tclsh
pidfile="/var/run/${name}.pid"
command_args="-pidfile $pidfile &"

# the first argument is the destination (or, if "-", use the roster)
jbot_flags="- -follow /var/log/jbot"

load_rc_config $name
run_rc_command "$1"