Tag Info

Hot answers tagged

5

I suppose TERM is set to linux for the init process (pid 1) by Linux kernel here and there. You can see it in /proc/1/environ (sorry the following output is from Ubuntu 15.04): $ sudo strings /proc/1/environ HOME=/ init=/sbin/init recovery= TERM=linux BOOT_IMAGE=/boot/vmlinuz-3.19.0-25-generic.efi.signed PATH=/sbin:/usr/sbin:/bin:/usr/bin PWD=/ ...


2

You can do this with fstab, as long as you mark the mount as a network one. Just add _netdev to the options field.


2

# systemctl start postgresql.service Some environments would translate service <name> start to systemctl start <name>.service, but you don't have to rely on it.


2

SysV Init The /etc/init.d/mountall.sh init script mounts local filesystems only: mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2,ceph -O no_netdev Other filesystems are mounted by separate init scripts, like for example /etc/init.d/mountnfs.sh, which declare (via LSB headers) their dependency on $network. Thus these get scheduled later, ...


2

KDM has a bug where it will ignore the multi-user.target target when using systemd. You still need to set the multi-user.target as mentioned in the answers above. But for some reason KDE will ignore that even when it is correctly set and still run at boot :/ . Here is the work around that I found that eventually did the trick. Add the following to your ...


2

Some versions of systemd refuse to suspend if you close the lid within three minutes of booting your machine, and possibly another lesser timeout after resuming. These quantities are not configurable. Could that be your problem? For tools to debug, see this post for increasing the log level to make logind actually tell you why it isn't suspending (not ...


2

You can do this by adding the Conflicts= directive to the [Unit] section of your two unit files (Conflicts= in the one unit file works too). From the man page for systemd.unit(5): A space-separated list of unit names. Configures negative requirement dependencies. If a unit has a Conflicts= setting on another unit, starting the former will stop the ...


2

Just use the journalctl command, as in: journalctl -u service-name.service Or, to see only log messages for the current boot: journalctl -u service-name.service -b For things named <something>.service, you can actually just use <something>, as in: journalctl -u service-name But for other sorts of units (sockets, targets, timers, etc), ...


2

/etc/systemd/system is where you put your scripts, pacman puts package scripts in /usr/lib/systemd/system. Issuing systemctl enable foo.service creates symlinks from /usr to /etc. See the Unit Load Path section of man systemd.unit(5) for more detail.


2

I've written 3, one for ntpd, one for a second, static ethernet card, and one for running p0f, the passive OS identifer. I put them all in /etc/systemd/system. Looks like I could maybe let systemd handle the NTP stuff, but I don't think I want to rely on it that much.


2

A) Is there a way to determine the systemd unit that caused the creation of a specific process (in my example output, process 2738, the PA daemon)? Sure. You can run systemctl status <pid> and systemd will find you the unit that contains that PID. For example, on my system I find a dnsmasq process: # ps -fe | grep dnsmasq nobody 18834 1193 ...


1

After speaking with a unix professional, the answer to this question is not definitively yes or no, however there is a good answer. Here are the locations for storing things that will be run (see links for details): /usr/bin stores things that are run and not unique to this particular computer (a package manager uses this location) /usr/local/bin stores ...


1

You usually do this with cron. If you worry that some lower-privileges user might edit python script maliciously, just grant him read-rights only, forbidding writing to this file.


1

Looks like it is the mysql.service that errors out in you loggs about 10 min after start. Aug 29 18:17:12 flippingbits com.canonical.Unity.Scope.Academic.Zotero[1788]: local variable 'backup_dbFile' referenced before assignment Aug 29 18:17:12 flippingbits com.canonical.Unity.Scope.Info.Calculator[1788]: Operation: Aug 29 18:22:06 flippingbits systemd[1]: ...


1

I see: mounting '/dev/sda8' on real root Shouldn't you have an entry in your fstab for /dev/sd8 for the / directory. I see all your other mount points other than your actual root.


1

Try adding to the [Service] a PIDFile= entry with the name of a file in which you should put the process id of your dataserver. Edit your ExecStart line to get this pid somehow, eg from the showserver command. Such a file may already be created by Sybase. You probably need to use Type=forking again. Ensure the exit code from your Exec scripts is 0 if they ...


1

I'm not sure I understood all your echo's, but this may be want you want. Put exactly what you want to have in the mysqlsec_skript.sh file inside a here string, i.e. a multiline string that starts on the line after a "<<'endoffileindicator'", and ends just before a line consisting of only the chosen endoffileindicator. I used the single char "!" as ...


1

First, there is no such event as "the desktop is fully up". There is no way to detect such a condition in a generic way. How would you formally define it? The DE's own autostart mechanisms (/etc/xdg/autostart, ~/.config/autostart etc.) are not controlled by systemd; it has no way of knowing whether the DE had finished its start-up. Moreover, the disk may ...


1

Systemd is an "init system" for Linux -- this is the first process started by the kernel when the system boots, and it is responsible for starting everything else. Your system already had an init process on it, so installing and using systemd isn't necessary to do what you want. The error you're seeing suggests that systemd isn't actually running, which ...



Only top voted, non community-wiki answers of a minimum length are eligible