#Managing bin/harvest as a systemctl service?

1 messages · Page 1 of 1 (latest)

bold yew
#

I have the Harvest Admin configured as a service already but I would like to do the same with the pollers. Currently, when the server is rebooted the pollers do not start automatically. What is the proper syntax for doing the same thing as harvest-admin?

stark sapphire
#

hi @bold yew not sure what OS you're on, but quadlets are a nice solution in this space if podman and quadlets are an option.

Also check out instantiated instances for a different take on systemctl integration

bold yew
#

I am running it native so the second option is what I will work on.

#
   Loaded: loaded (/etc/systemd/system/harvest.service; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2025-10-23 19:50:45 UTC; 2s ago
  Process: 7017 ExecStart=/opt/harvest/bin/harvest --config=/opt/harvest/harvest.yml start -f  (code=exited, status=217/USER)
 Main PID: 7017 (code=exited, status=217/USER)

Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: harvest.service: Main process exited, code=exited, status=217/USER
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: harvest.service: Failed with result 'exit-code'.
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: harvest.service: Service RestartSec=100ms expired, scheduling restart.
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: harvest.service: Scheduled restart job, restart counter is at 5.
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: Stopped harvest.service.
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: harvest.service: Start request repeated too quickly.
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: harvest.service: Failed with result 'exit-code'.
Oct 23 19:50:45 sds-harvest-854010.sys.comcast.net systemd[1]: Failed to start harvest.service.
Oct 23 19:50:48 sds-harvest-854010.sys.comcast.net systemd[1]: /etc/systemd/system/harvest.service:1: Missing '='.```
#

This is what I am getting now

#

I ran bin/harvest generate systemd | sudo tee /etc/systemd/system/harvest.target

#

This was generated:

Description="NetApp Harvest Meta Service"
Requires=harvest-admin.service poller@fas01-dt.service poller@fas01-avdc.service poller@fas01-ch2.service poller@fas01-cmc.service poller@fas01-hdc.service poller@fas01-po.service poller@fas01-wc.service poller@fas02-as.service poller@fas02-ch2.service poller@fas02-ho.service poller@fas02-po.service poller@fas02-wc.service poller@fas03-as.service poller@fas03-ch2.service poller@fas03-ho.service poller@fas06-as-vieo.service poller@fas06-den-vieo.service 

[Install]
WantedBy=multi-user.target```
#

Okay, after looking at the harvest.service file, I pasted the info that included the echo ' in it...I've cleaned that up so far. still failing but I'll look again