Skip to content

Instantly share code, notes, and snippets.

@raygunsix
Created November 29, 2011 18:59
Show Gist options
  • Save raygunsix/1405965 to your computer and use it in GitHub Desktop.
Save raygunsix/1405965 to your computer and use it in GitHub Desktop.
OpenDS init script for gentoo
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#depend() {
#
#}
start() {
ebegin "Starting opendns"
su - deploy -c "/opt/OpenDS/bin/start-ds"
eend $?
}
stop() {
ebegin "Starting opendns"
su - deploy -c "/opt/OpenDS/bin/stop-ds"
eend $?
}
#restart() {
#
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment