apache, subversion and deps in main
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
os.system("/bin/mkdir -p /var/svn/conf")
|
||||
os.system("/usr/bin/svnadmin create /var/svn/repos")
|
||||
|
||||
os.system("/bin/chmod -R 774 /var/svn/repos")
|
||||
os.system("/bin/chmod 775 /var/svn/repos")
|
||||
|
||||
os.system("/bin/chown -R svn:svn /var/svn")
|
||||
@@ -0,0 +1,25 @@
|
||||
from comar.service import *
|
||||
|
||||
serviceType = "server"
|
||||
serviceDesc = _({"en": "SVN Server",
|
||||
"tr": "SVN Sunucusu"})
|
||||
serviceConf = "svnserve"
|
||||
|
||||
PIDFILE = "/var/svn/svnserve.pid"
|
||||
|
||||
# Note that "/etc/conf.d/svnserve" passes --root=/var/svn by default
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
startService(command="/usr/bin/svnserve",
|
||||
args="--pid-file=%s %s" % (PIDFILE, config.get("SVNSERVE_OPTS")),
|
||||
chuid="%s:%s" % (config.get("SVNSERVE_USER"), config.get("SVNSERVE_GROUP")),
|
||||
donotify=True)
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
stopService(pidfile=PIDFILE,
|
||||
donotify=True)
|
||||
|
||||
def status():
|
||||
return isServiceRunning(pidfile=PIDFILE)
|
||||
Reference in New Issue
Block a user