Run my application on startup?

Ask questions about Arch Linux ARM. Please search before making a new topic.

Run my application on startup?

Postby matthewbartlett » Tue Aug 27, 2019 7:46 am

Noob alert ahead.

I am developing an application that will run on a headless Raspberry Pi2 (no monitor, no mouse, no keyboard). To get a good bootup time I want to use Arch linux instead of the standard Raspbian distro.

I'd like to know what is the proper way to automatically start my application on bootup (I will only need ALSA to run, no network, no internet, no video)?

Second question: is it harmful for Arch Linux when I shut down by cutting the power (i.e. will it corrupt the system)? I won't have a screen/keyboard so shutting down properly will be difficult...

Thanks!
matthewbartlett
 
Posts: 1
Joined: Tue Aug 27, 2019 7:43 am

Re: Run my application on startup?

Postby schard » Tue Aug 27, 2019 8:54 am

Write a systemd.service unit.
$this->bbcode_second_pass_quote('', 'S')econd question: is it harmful for Arch Linux when I shut down by cutting the power (i.e. will it corrupt the system)? I won't have a screen/keyboard so shutting down properly will be difficult...

Yes it is. Use systemctl poweroff either triggered by a timer oder manually via ssh to shut down your system.
schard
 
Posts: 12
Joined: Thu Apr 12, 2018 7:37 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 14 guests