rc.d are not installed by ports!

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Tue Jun 10 22:25:09 UTC 2014

mais at ouestil.com writes:

> It's not the first time it happens to me, but on two FreeBSD 9.2 host
> (recently updated from 9.0 because of EOL portstree support on it),
> using pkng, after upgrade of openssh, mysql, nginx ... ports does not
> install their rc.d !
> ~$ pkg info -l openssh-portable
> openssh-portable-6.6.p1_1,1:
>  /etc/rc.d/openssh

This indicates that the package system thinks it installed the startup
script. By default, this would be /usr/local/etc/rc.d/openssh (I just
tested the port and did, indeed, get the file installed). 

What makes you think it isn't there?

Incidentally, I got the same thing with mysql-server. The plist claims
to install a startup script into rc.d, and in my case I got one.

>  /etc/ssh/ssh_config-dist
>  /etc/ssh/sshd_config-dist
>  /usr/bin/scp
>  /usr/bin/sftp
>  /usr/bin/slogin
>  /usr/bin/ssh
>  /usr/bin/ssh-add
>  /usr/bin/ssh-agent
>  /usr/bin/ssh-keygen
>  /usr/bin/ssh-keyscan
>  /usr/libexec/sftp-server
>  /usr/libexec/ssh-keysign
>  /usr/libexec/ssh-pkcs11-helper
>  /usr/sbin/sshd
>  /usr/share/doc/openssh/HPN-README
>  /usr/share/man/man1/scp.1.gz
>  /usr/share/man/man1/sftp.1.gz
>  /usr/share/man/man1/slogin.1.gz
>  /usr/share/man/man1/ssh-add.1.gz
>  /usr/share/man/man1/ssh-agent.1.gz
>  /usr/share/man/man1/ssh-keygen.1.gz
>  /usr/share/man/man1/ssh-keyscan.1.gz
>  /usr/share/man/man1/ssh.1.gz
>  /usr/share/man/man5/moduli.5.gz
>  /usr/share/man/man5/ssh_config.5.gz
>  /usr/share/man/man5/sshd_config.5.gz
>  /usr/share/man/man8/sftp-server.8.gz
>  /usr/share/man/man8/ssh-keysign.8.gz
>  /usr/share/man/man8/ssh-pkcs11-helper.8.gz
>  /usr/share/man/man8/sshd.8.gz
> ~$ pkg info -l nginx
> nginx-1.6.0,2:
>  /usr/local/etc/nginx/fastcgi_params-dist
>  /usr/local/etc/nginx/koi-utf
>  /usr/local/etc/nginx/koi-win
>  /usr/local/etc/nginx/mime.types-dist
>  /usr/local/etc/nginx/nginx.conf-dist
>  /usr/local/etc/nginx/scgi_params-dist
>  /usr/local/etc/nginx/uwsgi_params-dist
>  /usr/local/etc/nginx/win-utf
>  /usr/local/man/man8/nginx.8.gz
>  /usr/local/sbin/nginx
>  /usr/local/share/licenses/nginx-1.6.0,2/BSD
>  /usr/local/share/licenses/nginx-1.6.0,2/LICENSE
>  /usr/local/share/licenses/nginx-1.6.0,2/catalog.mk

Okay, in the nginx port I don't see a startup script listed, and I don't
see anything that jumps out at me as creating one. But when I build the
port, I do get a startup script, so there's some kind of trickery taking
care of it.

> I didn't make a PR because it's looks like more a global problem than
> a openssh or mysql port specific.

That does seem reasonable, but it also seems particular to your system,
so that's where we'll really need to debug it.

More information about the freebsd-questions mailing list