Skip to content

systemd service file #3

@ojaksch

Description

@ojaksch

Personally I don't like the use of /etc/rc.local . Maybe as a last resort, but it's ugly. So let's prefer a systemd service file (atariserver.service):

[Unit]
Description=AtariServer - 8-bit Atari floppy emulator and web server for Raspberry Pi
ConditionPathExists=/dev/ttyAMA0

[Service]
Type=simple
ExecStart=/usr/local/bin/atariserver -w /home/pi/AtariServer-master/web-root -b /home/pi/AtariServer-master/atr/hisioboot-atarisio.atr -d /home/pi/files -C
StandardOutput=tty
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

It is not perfect for now as it starts before wpa_supplicant on my rpi0w for example, but it's a good starting point, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions