Skip to content

Commit 46060fc

Browse files
authored
Merge pull request #31 from server-may-cry/patch-1
Add recomendations
2 parents 7530020 + 8e3ab51 commit 46060fc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Alright, now we have an endless running command *in the foreground*. Usefull for
6666

6767
You should use [Upstart](http://upstart.ubuntu.com) (Ubuntu and others) or [systemd](http://www.freedesktop.org/wiki/Software/systemd) (Fedora, ArchLinux and others) to daemonize the command. They provide very robust daemonization, start your daemon on a reboot and also monitor the process so it will try to restart it in the case of a crash.
6868

69+
If you can't use Upstart or systemd, you can use `.lock` file with [LockHandler](http://symfony.com/doc/current/components/filesystem/lock_handler.html) with [crontab](https://wikipedia.org/wiki/Cron) wich start script every minute.
70+
6971
An [example Upstart script](examples/example-daemon.conf) is available, place your script in `/etc/init/` and start the daemon with `start example-daemon`. The name of the `.conf`-file will be the name of the daemon. A systemd example is not yet available, but it shouldn't be that hard to [figure out](http://patrakov.blogspot.nl/2011/01/writing-systemd-service-files.html).
7072

7173
## Command line switches

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"symfony/console": "3.*",
2020
"symfony/dependency-injection": "3.*"
2121
},
22+
"suggest": {
23+
"symfony/filesystem": "If you can't use Upstart or systemd"
24+
},
2225
"autoload": {
2326
"psr-0": { "Wrep\\Daemonizable\\": "src/" }
2427
}

0 commit comments

Comments
 (0)