Always on feature service running as daemon
Admin Account
open
Admin Account
planned
Admin Account
Thanks for reaching out with your "always-on" feature idea. It's a great suggestion, and we can see how running the app as a background daemon would be super handy. While we're figuring out the best way to integrate this smoothly into localportal, you might want to explore using a task manager like systemctl or supervisor to keep things running behind the scenes. That's not the official solution we're aiming for, but it could be a neat stopgap.
For understanding your setup and to serve you better, could you answer below questions
- Which all operating systems would you be running localportal from?
- Do you prefer localportal setting up the service by itself or giving copy/paste-able suggestions for you to set it up. Setting it up by itself would require you to give it sudo/admin access probably.
Admin Account
For setting it up for my system using systemctl, this is what I did!
Made a file for localportal service at
/etc/systemd/system/localportal.service
added this content
[Unit]
Description=Localportal
After=network.target
[Service]
ExecStart=/usr/local/bin/localportal link jetson --disable-tui
Restart=always
User=username
Group=groupname
WorkingDirectory=/home/username
[Install]
WantedBy=multi-user.target
then ran
sudo systemctl daemon-reload
sudo systemctl enable localportal
sudo systemctl start localportal
and for status
sudo systemctl status localportal
u
undefined
Admin Account: Mostly *inx based machines.
u
undefined
Admin Account: This sounds great will check it out. Thanks.