Ubuntu Pastebin

Paste from ronator at Fri, 10 Mar 2017 11:24:27 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[Unit]
Description=Start someproxy - feeds somedaemon with some data
After=network.target
Requires=somedaemon.service

[Service]
Type=simple
User=www-data
ExecStart=/usr/bin/php /path/to/some.php FooService SomeProxy
ExecStop=/bin/kill -9 $(pidof -s /usr/bin/php)

[Install]
WantedBy=multi-user.target
Download as text