My guess, is launchctl is executable but for root only... so you will have to use sudo...Now command line : since you edited:
I believe the command then should be:
But I have no idea what your optins (-w -F) are for.. I am not a Mac person...
There ya go.
launchctl will happily unload "com.mysql.mysql.plist" because, well, it's loaded, but you have to specify the path in order to load it.
Since "/com.mysql.mysql.plist" doesn't exist, you get an error message.
"/Library/LaunchDaemons/com.mysql.mysql.plist" does exist.
The manual load and unload isn't strictly necessary unless you want to do that.
On startup, launchctl will load the plist files appropriately (if they are not flagged as disabled).
LaunchDaemons run whether anyone is logged in or not. LaunchAgents will load at user logins.
This User Gave Thanks to [MA]Flying_Meat For This Post:
I am totally newbie. I try to login UNIX Solaris 10 through ssh command as user then i use sudo command to login as root: sudo su - but system give me an error sudo: not found. How can i fix this problem and install ssh services for my unix. (1 Reply)
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
As I am trying to log in, when input my user-name (root), when the password prompt, this is what I got (highlighted in red), before i can put in my password. Please tell my why this happened.
console login: root
Password:
sh: sudo: not found
Thank you. (0 Replies)
Hi,
I followed the step written in README.
It got some error message when I type " #python setup.py build"
running build
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.11-i86pc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/lib/python2.4/pycc -DNDEBUG... (2 Replies)
Hey all I'm having a little trouble installing a MySQL database. This is what I tried...
export PKG_PATH=ftp://mirror.planetunix.net/pub/OpenBSD/4.9/packages/`machine -a`
pkg_add -v mysql-server mysql-client
and this is what I get
Unknown element: @rcscript /etc/rc.d/mysqld in... (1 Reply)
Hello, all. My english is not good.
I have a problem installing FreeBsd.
I have not CD-Roms, so i use program FlashBoot for convert iso-image to USB Device.
After, I was beginning to install FreeBsd (Sorry my english)
When it's time to choose an installation media, i select 9 USB:... (3 Replies)
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
We are deploying an app to our students that is running as a daemon. It keeps them from using certain software. The problem is that when we initially deploy it we don't want to require a restart. So we decided to use launchctl to load the daemon manually. When we do it this way, though, the... (4 Replies)
Hi i am trying to install mysql rpm package on my linux machine but getting below error :
warning: MySQL-embedded-5.5.28-1.rhel5.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL-devel is needed by MySQL-embedded-5.5.28-1.rhel5.i386
... (9 Replies)
My yum install command is failing. I first did yum clean all
I even tried with localinstall.
Below is the error output:
yum install mysql-community-server*.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT OSX
launchd
launchd(8) BSD System Manager's Manual launchd(8)NAME
launchd -- System wide and per-user daemon/agent manager
SYNOPSIS
launchd [-d] [-D] [-s] [-S SessionType] [-- command [args ...]]
DESCRIPTION
launchd manages processes, both for the system as a whole and for individual users. The primary and preferred interface to launchd is via
the launchctl(1) tool which (among other options) allows the user or administrator to load and unload jobs. Where possible, it is preferable
for jobs to launch on demand based on criteria specified in their respective configuration files.
During boot launchd is invoked by the kernel to run as the first process on the system and to further bootstrap the rest of the system.
You cannot invoke launchd directly.
ENVIRONMENTAL VARIABLES
LAUNCHD_SOCKET
This variable is exported when invoking a command via the launchd command line. It informs launchctl how to find the correct launchd
to talk to.
NOTES
In Darwin, the canonical way to launch a daemon is through launchd as opposed to more traditional mechanisms or mechanisms provided in ear-
lier versions of Mac OS X. These alternate methods should be considered deprecated and not suitable for new projects.
In the launchd lexicon, a "daemon" is, by definition, a system-wide service of which there is one instance for all clients. An "agent" is a
service that runs on a per-user basis. Daemons should not attempt to display UI or interact directly with a user's login session. Any and all
work that involves interacting with a user should be done through agents.
If you wish your service to run as a certain user, in that user's environment, making it a launchd agent is the ONLY supported means of
accomplishing this on Mac OS X. In other words, it is not sufficient to perform a setuid(2) to become a user in the truest sense on Mac OS X.
FILES
~/Library/LaunchAgents Per-user agents provided by the user.
/Library/LaunchAgents Per-user agents provided by the administrator.
/Library/LaunchDaemons System-wide daemons provided by the administrator.
/System/Library/LaunchAgents Per-user agents provided by Mac OS X.
/System/Library/LaunchDaemons System-wide daemons provided by Mac OS X.
SEE ALSO launchctl(1), launchd.plist(5),
Darwin 1 May, 2009 Darwin