Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 635 Bytes

raspi.md

File metadata and controls

28 lines (23 loc) · 635 Bytes

Run pythonscript on startup as a service

  1. sudo nano /lib/systemd/system/scanner.service
  2. Copy and Paste:
[Unit]
Description=ScannerPythonScript
After=syslog.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /fotos/listen_os.py
Restart=always
RestartSec=2
SyslogIdentifier=scannerListener

[Install]
WantedBy=multi-user.target

  1. Save and close the file
  2. sudo systemctl daemon-reload
  3. sudo systemctl start scanner
  4. sudo systemctl enable scanner
  5. sudo systemctl daemon-reload

Mount Samba Share

Link