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.

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

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s