Sebastian
2011/7/5 Chohdry <cho...@gmail.com>:
#!/bin/sh
# chkconfig: 2345 90 10
# description: SCM-Server
SCM_SERVER="/opt/scm-server/bin/scm-server"
start() {
"$SCM_SERVER" start
}
stop() {
"$SCM_SERVER" stop
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 2
esac
Make it executable (chmod 755) and add it as centos service (chkconfig
--add scmserver).
Sebastian
2011/7/5 Sebastian Sdorra <s.sd...@gmail.com>:
Sebastian
2011/7/8 Chohdry <cho...@gmail.com>:
> Hi Sebastian,
>
> Thanks for detailed and prompt reply.
> It was really helpful I was just missing a couple of things.
> Specially was not aware of daemon mode with start command line param.
>
> Only thing is that when I try running in daemon it comes back with
> following error?
>
> /opt/scm-server/libexec/jsvc-linux-i686: error while loading shared
> libraries: libcap.so.2: cannot open shared object file: No such file
> or directory
>
> Do you think I might need to update to latest version?
> Also this reminds me wiki is missing some update instructions / best
> practices.
>
> Thanks
> Chohdry
>> 2011/7/5 Sebastian Sdorra <s.sdo...@gmail.com>:
>>
>>
>>
>>
>>
>>
>>
>> > Hi,
>> > You can use the start and stop parameter of the scm-server (not
>> > available on windows) e.g. ./scm-server start. The start parameter
>> > starts the scm-manager as unix daemon.
>>
>> > Sebastian
>>
>> > 2011/7/5 Chohdry <choh...@gmail.com>:
Sebastian
2011/7/8 Sebastian Sdorra <s.sd...@gmail.com>:
Sebastian
2011/7/8 Kamran Chohdry <cho...@gmail.com>:
Sebastian
2011/7/27 Garrett Johnson <garre...@gmail.com>:
2011/9/7 JavaNode <yura....@gmail.com>: