File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,27 @@ After=syslog.target
5
5
6
6
[Service]
7
7
ExecStart=/usr/bin/env uwsgi --ini {{ netbox_shared_path }}/uwsgi.ini
8
+ ExecReload=/bin/kill -HUP $MAINPID
9
+ ExecStop=/bin/kill -INT $MAINPID
8
10
User={{ netbox_user }}
9
11
Group={{ netbox_group }}
10
12
Restart=on-failure
13
+ SuccessExitStatus=15 17 29 30
11
14
KillSignal=SIGQUIT
12
15
Type=notify
13
16
StandardError=syslog
14
17
NotifyAccess=all
18
+ PrivateTmp=yes
19
+ ProtectSystem=full
20
+ ReadWriteDirectories={{ netbox_shared_path }}
21
+ {% if netbox_database_socket is defined %}
22
+ ReadWriteDirectories={{ netbox_database_socket }}
23
+ {% endif %}
24
+ DeviceAllow=/dev/null rw
25
+ DeviceAllow=/dev/urandom r
26
+ DeviceAllow=/dev/zero r
27
+ ProtectHome=yes
28
+ NoNewPrivileges=yes
15
29
16
30
[Install]
17
31
WantedBy=multi-user.target
You can’t perform that action at this time.
0 commit comments