Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save follmann/4100359 to your computer and use it in GitHub Desktop.
Save follmann/4100359 to your computer and use it in GitHub Desktop.
Manual and upstart config for AeroFS (aerofs-cli) on Ubuntu 12.04.1 LTS
Manual and upstart config for AeroFS (aerofs-cli) on Ubuntu 12.04.1 LTS:
# link standard upstart script
cd /etc/init.d
sudo ln -s /lib/init/upstart-job aerofs-cli
# create upstart config for aerofs-cli
sudo nano /etc/init/aerofs-cli.conf
(replace andreas with your desired runtime user)
----
description "start and stop the aerofs-cli"
version "1.0"
author "Andreas Follmann"
start on filesystem
stop on runlevel S
respawn
respawn limit 10 5
exec su -s /bin/sh -c 'exec "$0" "$@"' andreas -- /usr/bin/aerofs-cli
# launch it
sudo start aerofs-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment