?
Solved

startup script for an ircd

Posted on 2004-08-12
2
Medium Priority
?
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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 Month10 days, 16 hours left to enroll

770 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