File: jbot

package info (click to toggle)
tkabber 0.9.9-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,028 kB
  • ctags: 1,798
  • sloc: tcl: 36,852; xml: 3,704; sh: 1,386; makefile: 67
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"