Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

startup script for an ircd

Posted on 2004-08-12
2
Medium Priority
?
385 Views
Last Modified: 2013-11-22
Can anyone help me out?? I need a startup script to to place in the rc.d dir so I can load an ircd using the specific ircd account I created. Ive seen some around but these do not work very well.

Thanks in advance
0
Comment
Question by:JoeDW
2 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 11790904
Simple....
replace command line with /sbin/su - ircd -c /usr/local/ircd/bin/ircd

#!/bin/sh
#
# $FreeBSD: ports/net-mgmt/arpwatch-devel/files/arpwatch.sh,v 1.9 2004/07/09 16:50:00 krion Exp $
#

# PROVIDE: arpwatch
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable arpwatch:
# arpwatch_enable (bool):     Set to "NO" by default.
#                             Set it to "YES" to enable arpwatch
# arpwatch_flags (str):       Set to "-N" by default.
#                             Extra flags passed to start command
#
. /etc/rc.subr

name="arpwatch"
rcvar=`set_rcvar`

command="/usr/local/sbin/arpwatch"

[ -z "$arpwatch_enable" ]       && arpwatch_enable="NO"
[ -z "$arpwatch_flags" ]        && arpwatch_flags="-N"

load_rc_config $name

run_rc_command "$1"
0
 
LVL 1

Author Comment

by:JoeDW
ID: 11794048
Nice job...thanks for the help. Worked great
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month20 days, 18 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question