debian/hylafax_wrapper
raw| 1 | #! /bin/sh |
| 2 | # |
| 3 | # Wrapper that call hylafax executables (not long running daemons) |
| 4 | # after mounting the configuration directory inthe right place |
| 5 | # |
| 6 | # daemons have the same configurations in corresponding systemd unit files. |
| 7 | |
| 8 | readonly name=$(basename $0) |
| 9 | mount -o bind /etc/hylafax /var/spool/hylafax/etc |
| 10 | /usr/lib/hylafax/bin/"$name" "$@" |
| 11 | e=$? |
| 12 | umount /var/spool/hylafax/etc |
| 13 | exit $e |