#1 Systemd service for ocelot

Open
hierra wants to merge 6 commits from hierra/Gazelle-guide-resources:master into master

+ 1
- 0
examples.of.what.worked.for.me/etc/nginx/sites-available/default View File

@@ -1,4 +1,5 @@
1 1
 server {
2
+ server_tokens off;
2 3
  root /var/www;
3 4
  index index.php index.html index.htm;
4 5
  server_name put.your.domain.here;

+ 1
- 1
examples.of.what.worked.for.me/etc/php/7.2/fpm/php.ini View File

@@ -11,7 +11,7 @@ serialize_precision = 17
11 11
 disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
12 12
 disable_classes =
13 13
 zend.enable_gc = On
14
-expose_php = On
14
+expose_php = Off
15 15
 max_execution_time = 30
16 16
 max_input_time = 60
17 17
 memory_limit = 128M

+ 20
- 0
examples.of.what.worked.for.me/lib/systemd/system/ocelot.service View File

@@ -0,0 +1,20 @@
1
+[Unit]
2
+Description=Ocelot Bittorrent Tracker
3
+After=network.target
4
+After=mysql.target
5
+Requires=network.target
6
+Requires=mysql.service
7
+
8
+[Service]
9
+Type=simple
10
+TimeoutStartSec=0
11
+ExecStart=/usr/local/bin/ocelot
12
+ExecReload=/bin/kill -HUP $MAINPID
13
+PIDFile=/var/run/ocelot.pid
14
+RestartSec=20
15
+TimeoutStopSec=60
16
+TimeoutStartSec=360
17
+Restart=always
18
+
19
+[Install]
20
+WantedBy=multi-user.target

+ 10
- 0
examples.of.what.worked.for.me/lib/systemd/system/searchd.service View File

@@ -0,0 +1,10 @@
1
+[Unit]
2
+Description=sphinx searchd SQL full-text search engine
3
+After=syslog.target network.target
4
+
5
+[Service]
6
+Type=forking
7
+ExecStart=/usr/bin/searchd --config /etc/sphinxsearch/sphinx.conf
8
+
9
+[Install]
10
+WantedBy=multi-user.target

Loading…
Cancel
Save