New package: tempreceiver
This commit is contained in:
41
temprature-receiver/tempreceiver.service
Normal file
41
temprature-receiver/tempreceiver.service
Normal file
@@ -0,0 +1,41 @@
|
||||
[Unit]
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=tempreceiver
|
||||
Environment=RUST_LOG=info
|
||||
Environment=TEMPRECEIVER_DB_FILE=/var/lib/tempreceiver/db.sqlite3
|
||||
ExecStart=/usr/bin/tempreceiver
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
ReadWritePaths=/var/lib/tempreceiver/
|
||||
NoNewPrivileges=yes
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
PrivateUsers=yes
|
||||
PrivateMounts=yes
|
||||
DevicePolicy=closed
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
ProtectClock=yes
|
||||
ProtectHostname=yes
|
||||
ProtectControlGroups=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectKernelTunables=yes
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK
|
||||
CapabilityBoundingSet=
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
ProtectKernelLogs=yes
|
||||
RestrictNamespaces=yes
|
||||
RestrictRealtime=yes
|
||||
RestrictSUIDSGID=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
LockPersonality=yes
|
||||
RemoveIPC=yes
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user