Hi all,
I'm having the following error appear whenever I try to interact with any services:
Replace <anything> with any service. It returns the same error and fails to start the service. Using 'onestart/onestop/onestatus/etc' works fine, so I am able to work around the problem to an extent although startup and shutdown is also affected, so I'm worried services won't be shutdown gracefully (and they all have to be started manually at boot).
I've looked around for a solution to this problem but I'm not having much luck. The only mention of this error is an old DragonFlyBSD mailing list post.
Looking at /etc/rc.subr, I'm going to assume that ${OSTYPE} is either undefined or invalid however I am unsure as to how I can test this theory further, as my shell script knowledge is pretty poor. I haven't tried changing the default condition of that particular case as I'm pretty confident something else is decently broken.
The problem itself has only occurred after I upgraded from 8.1-RELEASE to 8.2-RELEASE and freebsd-update required me to manually merge quite a few changes. It's possible that I have left a typo or weird characters in a configuration file somewhere, but I'm not really sure where to start looking (I did to some grep's for some of the lines that I saw in the merged files when manually updating them without and results).
Any assistance on this would be greatly appreciated.
I'm having the following error appear whenever I try to interact with any services:
Code:
/etc/rc.d/<anything>: WARNING: $XXX is not set properly - see rc.conf(5).
Cannot 'status' <anything>. Set XXX to YES in /etc/rc.conf or use 'onestatus' instead of 'status'.
Replace <anything> with any service. It returns the same error and fails to start the service. Using 'onestart/onestop/onestatus/etc' works fine, so I am able to work around the problem to an extent although startup and shutdown is also affected, so I'm worried services won't be shutdown gracefully (and they all have to be started manually at boot).
I've looked around for a solution to this problem but I'm not having much luck. The only mention of this error is an old DragonFlyBSD mailing list post.
Looking at /etc/rc.subr, I'm going to assume that ${OSTYPE} is either undefined or invalid however I am unsure as to how I can test this theory further, as my shell script knowledge is pretty poor. I haven't tried changing the default condition of that particular case as I'm pretty confident something else is decently broken.
The problem itself has only occurred after I upgraded from 8.1-RELEASE to 8.2-RELEASE and freebsd-update required me to manually merge quite a few changes. It's possible that I have left a typo or weird characters in a configuration file somewhere, but I'm not really sure where to start looking (I did to some grep's for some of the lines that I saw in the merged files when manually updating them without and results).
Any assistance on this would be greatly appreciated.