Activation of FlowForge Agent in DietPi

Good afternoon everyone, if you can give me one more help I would greatly appreciate it.

I’m trying to activate flowforge agent as a service on my linux.

I use a distribution for the Raspberry PI called DietPI.

And I’m not getting my hands on the service file settings.

Can someone guide me where my error is?


Where is my mistake?

I’ve already tried to change to the model suggested on github, exactly this one, just changing Pi users to root.

But it gives error.

@allacmc can you follow the guide found at our blog: Running the FlowForge Device Agent as a service on a Raspberry Pi • FlowForge

Before posting this question on the forum.

I followed this guide exactly and it didn’t work.

Can you take a look at these error messages? And help me?

Can you remove the first S in the file? It shouldn’t be there

Also, please note your service file is very different from what we recommend in the blog post.

You likely just need:

[Unit]
Description=FlowForge Device Agent
Wants=network.target
Documentation=https://flowforge.com/docs

[Service]
Type=simple
# Run as normal pi user - change to the user name you wish to run FlowForge Device as
User=root
Group=root
WorkingDirectory=/opt/flowforge-device

Environment="NODE_OPTIONS=--max_old_space_size=512"
ExecStart=/usr/bin/env flowforge-device-agent
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
RestartSec=20
# Tag things in the log
SyslogIdentifier=FlowForgeDevice
#StandardOutput=syslog

[Install]
WantedBy=multi-user.target
1 Like

Still not accepting…

Do you have any suggestions ?

From what I can see on the log time timestamps it’s the same timestamp as earlier. Can you stop the service first and then just start?

Its, working fine. Thanks!!!

It worked fine with the code below.

root@ServidorTelemetria01:/etc/systemd/system# cat flowforge-device-agent.service 
[Unit]
Description=FlowForge Device Agent
Wants=network.target
Documentation=https://flowforge.com/docs

[Service]
Type=simple
# Run as normal pi user - change to the user name you wish to run FlowForge Device as
User=root
Group=root
WorkingDirectory=/opt/flowforge-device

Environment="NODE_OPTIONS=--max_old_space_size=512"
ExecStart=/usr/bin/env flowforge-device-agent
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
RestartSec=20
# Tag things in the log
SyslogIdentifier=FlowForgeDevice
#StandardOutput=syslog

[Install]
WantedBy=multi-user.target
root@ServidorTelemetria01:/etc/systemd/system#