File: yrmcds.upstart

package info (click to toggle)
yrmcds 1.1.8-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,000 kB
  • sloc: cpp: 11,157; sh: 148; makefile: 117
file content (37 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Upstart script for yrmcds

description     "yrmcds"

start on net-device-up
stop on runlevel [!2345]

respawn

limit nofile 100000 100000
umask 077
chdir /tmp

pre-start script
    [ -d /var/tmp/yrmcds ] || mkdir /var/tmp/yrmcds
    if [ -d /var/tmp/yrmcds ]; then
	/usr/bin/install -o yrmcds -g yrmcds -m 0700 -d /var/tmp/yrmcds
    	rm -f /var/tmp/yrmcds/*
    fi

    # make sure keepalived init script was disabled.
    # ex) sudo update-rc.d keepalived disable
    #/etc/init.d/keepalived start
    #sleep 5
end script

#post-stop script
#    /etc/init.d/keepalived stop
#
#    # sleep a while to hand-off VIP
#    sleep 5
#end script

setuid yrmcds
setgid yrmcds

exec /usr/sbin/yrmcdsd