summarylogtreecommitdiffstats
path: root/cellframe-node-asan.service
blob: a999aa24ebae0a04c2ea8cf112b2887fcf48139b (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
[Unit]
Description=Cellframe Node
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
WorkingDirectory=/opt/cellframe-node
ExecStartPre=+/bin/chown -R cellframe:cellframe /opt/cellframe-node
ExecStart=/opt/cellframe-node/bin/cellframe-node
ExecStop=/bin/kill -SIGTERM $MAINPID
Restart=always
User=cellframe
Group=cellframe
RestartSec=10
LogNamespace=cellframe
StandardOutput=null
StandardError=journal
Environment="ASAN_OPTIONS=strict_string_checks=1:detect_invalid_pointer_pairs=2:debug=1:atexit=1:abort_on_error=1:log_path=asanlog.txt"

# Hardening
ProtectSystem=full
ProtectHome=read-only
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target