Start a server software at system boot time

I needed to start svnserve at boot time as a particular user on Red Hat Enterprise Linux. After looking at this and this posts, I came up with the following:

/etc/rc.d/rc.local
su svn -c "svnserve -d"

 

This effectively runs svnserve in daemon mode as svn user after all other init scripts ran at boot time.

Advertisements

One thought on “Start a server software at system boot time

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s