]> git.pld-linux.org Git - packages/lsvpd.git/blob - vpdupdater.init
- does not build with C++17 standard, downgrade, rel 4
[packages/lsvpd.git] / vpdupdater.init
1 #!/bin/sh
2 #
3 # vpdupdater    VPD Database updater
4 #
5 # chkconfig:    345 10 90
6 #
7 # description:  VPD Database updater
8 #
9 # processname:  vpdupdate
10 #
11 # $Id$
12
13 # Source function library
14 . /etc/rc.d/init.d/functions
15
16 RUN_VPDUPDATE=yes
17
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/vpdupdater ] && . /etc/sysconfig/vpdupdater
20
21 RETVAL=0
22 # See how we were called.
23 case "$1" in
24   start|restart|try-restart|force-reload)
25         if is_yes "$RUN_VPDUPDATE" ; then
26                 /usr/sbin/vpdupdate
27         fi
28         ;;
29   stop)
30         ;;
31   *)
32         msg_usage "$0 {start|stop|restart|try-restart|force-reload}"
33         exit 3
34 esac
35
36 exit $RETVAL
This page took 0.089129 seconds and 3 git commands to generate.