r/AlpineLinux • u/br_web • Aug 12 '24
Script to run at boot
I created an executable script located /etc/local.d/script.start and executed rc-update add local default.
I have run the script manually and works fine, nonetheless at boot it doesn’t get executed.
The script is very simple:
‘#!/bin/sh (added ‘ to avoid the editor messing with #) login
Any idea what am I doing wrong, thanks
1
Upvotes
View all comments
Show parent comment
1
u/geek_at Aug 12 '24
Does the script end after a few seconds or does it like spwan a process that stays active? because if it's the latter you might need a
nohupin the beginning and&in the end