FreeBSDwiki:Community Portal
Line 44: | Line 44: | ||
---- | ---- | ||
− | + | Hylafax has configuration files for its demons. They are similar to other allow/deny files. All of those have been set up properly, as far as I can tell. | |
-- Joe B. -- | -- Joe B. -- | ||
---- | ---- |
Revision as of 12:47, 7 December 2004
What's this page for?
BSD-related links in general?
I wouldn't mind some BSD wallpapers.
I would appreciate some information in the commands section on process and file locking: locating/tracking down locked files and processes. I would also appreciate some extra info on what commands to use to unlock resources that remain locked after a program abnormally terminates.
-- Joe B. --
Can you give me a little more background info on this? I've never had any trouble with file or process locking; particularly given that, at least if you're root, there IS no such thing. Actually I'm unaware of per-user file locking on a non-superuser level either - which isn't to say that it doesn't EXIST, but I see an AWFUL lot of programs implementing their own flock system with special files to indicate locking on data files. Which tends to reinforce my (possibly naive) idea that if you want locking, you have to implement it for yourself..
So, yeah, can you give us more info about what you're having trouble with exactly?
--Jimbo 21:43, 17 Nov 2004 (EST)
Sounds like it's being init'd by root (or a user with root privs) at boot time and doesn't want to give it up. if you've used lsof to see what's open, kill -HUP or kill -9 it.
-dave
you can use lsof to see what files are open....
--Dave
I have installed Hylafax and tried to set it up. For some reason, the installation was interrupted and I keep getting the message that the modem [/dev/cuaa4], is 'locked', so no faxes can be sent. I can still dial the modem with a program like Seyon or Minicom. I've tried to hunt down the lockfiles used by the program, in case any of them are misbehaving, but with no luck and, besides, I'm still unsure how to unlock a locked socket or file if I find one. I'm running FreeBSD 5.1. The lockup continues even after a hard reboot and reinstall.
-- Joe B. --
Hrm. I'm unfamiliar with Hylafax, and to be honest my experience with modems under BSD is also nonexistent - I haven't used dialup under *nix since I got PPP set up under SuSE with my very first experiments with running my own *nix box about six years ago. What user context is your app running under? It's possible that you might have to do something special to delegate some privileges if you want it to run in a non-root context, sort of like mounting or dismounting CDs or floppies.
--Jimbo 16:08, 2 Dec 2004 (EST)
Hylafax has configuration files for its demons. They are similar to other allow/deny files. All of those have been set up properly, as far as I can tell.
-- Joe B. --