From f551ea484839e854a6f232ef0758e1c6102c18e4 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Fri, 31 Oct 2008 06:21:05 -0400 Subject: [PATCH] Add an init script to invirt-vnc-client to refresh the VNC certificate trust store svn path=/trunk/packages/invirt-vnc-client/; revision=1440 --- debian/changelog | 3 ++- debian/invirt-vnc-client.init | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 debian/invirt-vnc-client.init diff --git a/debian/changelog b/debian/changelog index a54c503..a291cb9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ invirt-vnc-client (0.0.6) unstable; urgency=low * Isolate our patches from the upstream source * Fix the dependencies for invirt-update-vnc-cert + * Add an init script to refresh the VNC trust store - -- Evan Broder Fri, 31 Oct 2008 06:15:10 -0400 + -- Evan Broder Fri, 31 Oct 2008 06:19:59 -0400 invirt-vnc-client (0.0.5) unstable; urgency=low diff --git a/debian/invirt-vnc-client.init b/debian/invirt-vnc-client.init new file mode 100644 index 0000000..be1ae33 --- /dev/null +++ b/debian/invirt-vnc-client.init @@ -0,0 +1,37 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: invirt-vnc-client +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Invirt VNC client certificates +# Description: Refresh the VNC trusted certificate store for the +# Invirt VNC client to include certificates for all +# current hosts +### END INIT INFO + +NAME=invirt-vnc-client +DESC="Invirt VNC client certificates" +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +dpkg -s "$NAME" >/dev/null 2>/dev/null || exit 0 + +. /lib/init/std-init.sh + +do_start() +{ + invirt-update-vnc-cert +} + +do_reload() +{ + do_start +} + +do_stop() +{ + return 0 +} + +std_init "$1" -- 1.7.9.5