blob: 3831989ced2d36c3e118185201cae60c9ac53605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
[Unit]
Description=An encrypted network without censorship and monitoring.
After=network.target time-sync.target
[Service]
Type=forking
User=freenet
PIDFile=/run/freenet/freenet.pid
LimitNOFILE=4096
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectHome=tmpfs
ProtectSystem=strict
DeviceAllow=/dev/null rw
DeviceAllow=/dev/urandom r
ReadOnlyDirectories=/
ReadWriteDirectories=-/run/freenet -/opt/freenet
ExecStart=/usr/bin/java-service-wrapper /opt/freenet/wrapper.config \
wrapper.name=freenet \
wrapper.syslog.ident=freenet \
wrapper.daemonize=TRUE TZ=UTC
ExecReload=/bin/kill -USR1 $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
SendSIGKILL=no
SuccessExitStatus=0 2 3
[Install]
WantedBy=multi-user.target
|