26 lines
532 B
Desktop File
26 lines
532 B
Desktop File
[Unit]
|
|
Description=Home Lab Auto-Update Service
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=root
|
|
WorkingDirectory=/home/geir/Home-lab
|
|
ExecStart=/run/current-system/sw/bin/lab auto-update
|
|
Environment=HOME=/root
|
|
Environment=PATH=/run/current-system/sw/bin:/usr/bin:/bin
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=lab-auto-update
|
|
|
|
# Security settings
|
|
NoNewPrivileges=true
|
|
ProtectSystem=false
|
|
ProtectHome=false
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|