Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package deb: support daemonization by forever
- Loading branch information
Showing
6 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| var/lib/gcs | ||
| var/log/gcs | ||
| var/run/gcs |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /var/log/gcs/*.log { | ||
| daily | ||
| missingok | ||
| rotate 30 | ||
| compress | ||
| delaycompress | ||
| notifempty | ||
| create 640 gcs gcs | ||
| sharedscripts | ||
| postrotate | ||
| service gcs status && service gcs restart | ||
| endscript | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| description 'Groonga CloudSearch' | ||
| author 'Yoji Shidara <dara@shidara.net>' | ||
|
|
||
| start on (filesystem and net-device-up IFACE=lo) | ||
| stop on runlevel [!2345] | ||
|
|
||
| env NODE_ENV=production | ||
|
|
||
| setuid gcs | ||
| setgid gcs | ||
|
|
||
| script | ||
| exec /usr/sbin/gcs | ||
| end script |
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