File: FREEBSD.readme

package info (click to toggle)
sanoid 2.0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 592 kB
  • sloc: perl: 2,550; sh: 367; makefile: 25
file content (24 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FreeBSD users will need to change the Perl shebangs at the top of the executables from #!/usr/bin/perl 
to #!/usr/local/bin/perl in most cases.

Sorry folks, but if I set this with #!/usr/bin/env perl as suggested, then nothing works properly
from a typical cron environment on EITHER operating system, Linux or BSD.  I'm mostly using Linux
systems, so I get to set the shebang for my use and give you folks a FREEBSD readme rather than
the other way around. =)

If you don't want to have to change the shebangs, your other option is to drop a symlink on your system:

root@bsd:~# ln -s /usr/local/bin/perl /usr/bin/perl

After putting this symlink in place, ANY perl script shebanged for Linux will work on your system too.

Syncoid assumes a bourne style shell on remote hosts. Using (t)csh (the default for root under FreeBSD)
has some known issues:

* If mbuffer is present, syncoid will fail with an "Ambiguous output redirect." error. So if you:
  root@bsd:~# ln -s /usr/local/bin/mbuffer /usr/bin/mbuffer
  make sure the remote user is using an sh compatible shell.

To change to a compatible shell, use the chsh command:

root@bsd:~# chsh -s /bin/sh