Roger Wilco
Explorer
- Joined
- Jul 17, 2014
- Messages
- 65
@Fraoch
Hi,
You do not need to set any passwords in any scripts.
Do the created log files have 'lms' as owner and group?
I have
What permissions does the lms script have?
I have
Just a shot in the dark, in the /usr/local/etc/rc.d/lms script the following lines need to look exactly this way:
Do not add or remove any whitespaces or anything or it won't work. See
in rcorder(8).
Did you create the file under Windows? Windows uses different line endings than Unix-like OSes (\r\n vs. \n). -Editor you'd see those ^M characters at the end of a line:
Vim with ^M
Can you post the output of:
Do you get this output:
If these things are also ok, then I am clueless, and you'll need to start reading how the rc.d framework works. A good starting point is
Practical rc.d scripting in BSD
HTH,
rw
Hi,
You do not need to set any passwords in any scripts.
Do the created log files have 'lms' as owner and group?
I have
Code:
ls -al /var/log/lms/ total 20 drwxr-xr-x 2 lms lms 5 Mar 21 22:57 . drwxr-xr-x 3 root wheel 43 Apr 2 23:00 .. -rw-r--r-- 1 lms lms 0 Mar 3 22:17 perfmon.log -rw-r--r-- 1 lms lms 0 Mar 21 23:20 scanner.log -rw-r--r-- 1 lms lms 3054 Mar 28 00:44 server.log
What permissions does the lms script have?
I have
Code:
ls -al /usr/local/etc/rc.d/lms -r-xr-xr-x 1 root wheel 2745 Mar 31 01:24 /usr/local/etc/rc.d/lms
Just a shot in the dark, in the /usr/local/etc/rc.d/lms script the following lines need to look exactly this way:
Code:
# PROVIDE: lms # REQUIRE: LOGIN # KEYWORD: shutdown
Do not add or remove any whitespaces or anything or it won't work. See
Code:
The format of the lines is rigid. Each line must begin with a single `#', followed by a single space, followed by ``PROVIDE:'', ``REQUIRE:'', ``BEFORE:'', or ``KEYWORD:''. No deviation is permitted.
in rcorder(8).
Did you create the file under Windows? Windows uses different line endings than Unix-like OSes (\r\n vs. \n). -Editor you'd see those ^M characters at the end of a line:
Vim with ^M
Can you post the output of:
Code:
rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
Do you get this output:
Code:
service lms rcvar # lms # lms_enable="YES" # (default: "")
Code:
service lms rcvar
If these things are also ok, then I am clueless, and you'll need to start reading how the rc.d framework works. A good starting point is
Practical rc.d scripting in BSD
HTH,
rw