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 |