fsniper upstart init script is not provided

Bug #1017654 reported by Roger Dueck
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
fsniper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

"apt-get install fsniper" does not install a startup script or upstart config file.
I solved the problem with the following, and thought it would be worth contributing to the community.

Step 1) Create fsniper user:
useradd fsniper

Step 2) Create and link the upstart init configuration file:
cat > /etc/init/fsniper.conf << END
# fsniper - Monitors directories for new files and invokes scripts on them
#
# fsniper is a tool that monitors a given set of directories for
# new files. Then, based on the new file's type or name, it
# invokes a script to be run (any executable via the shell) on
# that file. Common uses include making a single drop directory
# for all things from a webbrowser etc, and having
# semi-intelligent scripts figure out what to do with those
# files. You write the scripts yourself.

description "fsniper - Monitors directories for new files and invokes scripts on them"

start on runlevel [2345]
stop on runlevel [!2345]

exec sudo -u fsniper /usr/bin/fsniper --daemon --log-to-stdout /etc/fsniper.conf 1>> /home/fsniper/fsniper.log
END
cd /etc/init.d; ln -s /lib/init/upstart-job fsniper

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: fsniper 1.3.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Mon Jun 25 13:14:35 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
ProcEnviron:
 LANGUAGE=en_CA:en
 TERM=xterm-color
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: fsniper
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Roger Dueck (rdueck) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fsniper (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.