github.com/swiftstack/proxyfs@v0.0.0-20201223034610-5434d919416e/cookbooks/proxyfs/files/default/etc/init/proxyfsd.upstart (about)

     1  # proxyfsd job file 
     2  
     3  description "proxyfsd -- a filesystem for OpenStack Swift"
     4  author "orion <orion@swiftstack.com>"
     5  
     6  # Stanzas
     7  
     8  # When to start the service
     9  start on runlevel [2345]
    10  
    11  # When to stop the service
    12  stop on runlevel [016]
    13  
    14  # Automatically restart process if crashed
    15  # respawn
    16  
    17  # Essentially lets upstart know the process will detach itself to the background
    18  # expect fork
    19  
    20  # Run before process
    21  pre-start script
    22      [ -d /var/log/proxyfsd ] || mkdir -p /var/log/proxyfsd
    23  end script
    24  
    25  # Start the process
    26  exec /usr/bin/proxyfsd /etc/proxyfsd/saioproxyfsd0.conf 2>/var/log/proxyfsd/proxyfsd.err