source: trunk/packages/invirt-vnc-client/debian/invirt-vnc-client.init @ 2813

Last change on this file since 2813 was 1440, checked in by broder, 16 years ago

Add an init script to invirt-vnc-client to refresh the VNC certificate
trust store

File size: 745 bytes
Line 
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides:          invirt-vnc-client
4# Required-Start:    $local_fs $remote_fs
5# Required-Stop:     $local_fs $remote_fs
6# Default-Start:     2 3 4 5
7# Default-Stop:      0 1 6
8# Short-Description: Invirt VNC client certificates
9# Description:       Refresh the VNC trusted certificate store for the
10#                    Invirt VNC client to include certificates for all
11#                    current hosts
12### END INIT INFO
13
14NAME=invirt-vnc-client
15DESC="Invirt VNC client certificates"
16PATH=/sbin:/usr/sbin:/bin:/usr/bin
17
18dpkg -s "$NAME" >/dev/null 2>/dev/null || exit 0
19
20. /lib/init/std-init.sh
21
22do_start()
23{
24    invirt-update-vnc-cert
25}
26
27do_reload()
28{
29    do_start
30}
31
32do_stop()
33{
34    return 0
35}
36
37std_init "$1"
Note: See TracBrowser for help on using the repository browser.