source: branches/cereal/0.22/fs/usr/share/cereal/finish @ 1205

Last change on this file since 1205 was 1205, checked in by jrollins, 10 years ago

cereal: i got way overzealous and did not pay attention, so i am reverting the uid changes i just made outside of the debian/ directory. i am also reverting some other the changes that Daniel made that i thought were ultimately not necessary, so as to keep the total number of diffs to an absolute minimum. i will now completely stop mucking with things, and will accept whatever changes Daniel thinks are best for the backport. all appologies.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 575 bytes
Line 
1#!/bin/sh -e
2
3# The cereal scripts were written by
4# Jameson Rollins <jrollins@fifthhorseman.net>
5# and
6# Daniel Kahn Gillmor <dkg-debian.org@fifthhorseman.net>.
7#
8# They are Copyright 2007, and are all released under the GPL, version 3
9# or later.
10
11exec 2>./socket 1>&2
12
13SHAREDIR="/usr/share/cereal"
14export SHAREDIR
15
16# check the exit code of run, and remove the lock if it's NOT 73
17# (which is exit code of lockfile if a lock file already existed).
18RUN_EXIT_CODE="$1"
19if [ "$RUN_EXIT_CODE" != 73 ] ; then
20    exec chpst -e ./env sh -c ". $SHAREDIR/common && remove_lock"
21fi
Note: See TracBrowser for help on using the repository browser.