Last active
May 19, 2022 05:35
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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