fsniper upstart init script is not provided
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 - 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/
END
cd /etc/init.d; ln -s /lib/init/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: fsniper 1.3.1-0ubuntu3
ProcVersionSign
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)
Status changed to 'Confirmed' because the bug affects multiple users.