Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-snmp does not bring an /etc/sv/snmpd entry #29508

Closed
bcookatpcsd opened this issue Mar 16, 2021 · 3 comments
Closed

net-snmp does not bring an /etc/sv/snmpd entry #29508

bcookatpcsd opened this issue Mar 16, 2021 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@bcookatpcsd
Copy link

there seems to be no snmpd/run script..

I made this..

#!/bin/sh [ ! -e /etc/snmp/snmpd.conf ] && exit 1 exec /usr/sbin/snmpd -f -p /run/snmpd.pid -LSwd -Lf /dev/null
My 0.02

disclaimer
I've used this snmpd string for myself, check the args for yourself please..

@folliehiyuki
Copy link
Contributor

I don't use net-snmp, but you can make a PR adding the run script. Maybe something like this:

srcpkgs/net-snmp/files/snmpd/run
-----------------------------------
#!/bin/sh

[ -r conf ] && . ./conf

[ ! -e /etc/snmp/snmpd.conf ] && exit 1
exec /usr/sbin/snmpd ${OPTS:=-f -LSwd -Lf} -p /run/snmpd.pid

Put in there what you think are a sane default args.
User can always change the args to their liking inside /etc/sv/snmpd/conf

@ericonr ericonr added good first issue Good for newcomers help wanted Extra attention is needed labels Apr 27, 2021
@ericonr
Copy link
Member

ericonr commented Apr 27, 2021

@bcookatpcsd are you interested in making a PR for this package? @folliehiyuki's suggestion looks good.

@heittpr heittpr mentioned this issue Oct 6, 2021
3 tasks
@heittpr
Copy link
Contributor

heittpr commented Oct 6, 2021

@ericonr I took the liberty to try and make a PR myself. Let me know if it looks ok to you or if there's anything I should change.

@ericonr ericonr closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants