
ubuntu16.04.1, systemd An application depends on mongodb. The application and mongodb both start on boot as services. app.service containts next line: After=network.target mongod.service Unfortunately, the application fails (with connection to database error), I guess, because the mongodb needs some time to startup and be ready to connections (if I start the app later, everything is ok). It looks like Type=notify (in [Service] section of mongod.service) will solve the problem if mongodb sends...
ادامه مطلب
Background: My package manager seems to have managed to mess up my network daemon so it won't properly manage networks and instead exit with a failure (non-zero) status code. (The particular code is 226/NAMESPACE). Simply searching for these does not give me any helpful pages at all. Does anyone know where to find the exit codes for this program, and what this error means in particular? Let's block ads! بخوانید...
ادامه مطلب
I have a question about my S.M.A.R.T. daemon configuration. I use two HDDs as RAID 1 observed with smartd. In general these are suspended, i just access them one time in two days. I've noticed the HDDs spin up every 30 minutes, because of some "checks". What do these checks do? What are offline tests for? What is the difference between short and long selftests? I want to do a long test from time to time (e.g. once a month). I want to do a short test more frequently (once a week). It is useful to...
ادامه مطلب
I don't think this is a duplicate of this but if it is, please feel free to mark it as such. I'm running collectd to gather metrics from my home lab, as well as my home energy usage, and feed it into influxdb to display in grafana. If I launch collectd via command line: collectd -C /etc/collectd/collectd.conf collectd runs, collects other metrics, and collects my home-energy usage just fine (i see values in influxdb). If I try launching collectd via it's init script /etc/init.d/collect start...
ادامه مطلب
Is there something less verbose, more like a chart that tus easier to figure modules and Keel load on boot? I've tried old bootchart but it keel panicked. If not, dmesg is the only choice? Not that it is horrible but, it takes more time to figure problem. Let's block ads! بخوانید...
ادامه مطلب
By default udisks2 mounts removable drives under /run/media/$USER/[UUID]. The UUID contains hyphens. I wanted to use this mount point in a systemd service. But systemd uses hyphens instead of forward slashs. man systemd.mount tells me: Mount units must be named after the mount point directories they control. Example: the mount point /home/lennart must be configured in a unit file home-lennart.mount. Can /run/media/daniel/76ya27o9-abce-81fv-8j2hj-casjkdjhhlasfd/ be used in a systemd service bec...
ادامه مطلب
I'm having an issue with the name server daemon using up more CPU than I can understand. I got to this issue while trying to figure out why the VPS I'm running feels slow. First off, the problem of named having a high-CPU usage is not new: this question provided me with steps meant to fix the issue. The problem I have is that although I've followed the steps in the detailed answer by @efesaid with success, I still see a quite active and CPU-hungry process. The server is a VPS running an up-to-da...
ادامه مطلب
I saw a similar question but it was related to the newer docker-machine so it's not duplicate. So, basically what I've done - I removed docker VM (boot2docker-vm) from Virtual Box then recreated it using boot2docker init, started it and after that I'm getting the error on any docker command: Cannot connect to the Docker daemon. Is the docker daemon running on this host? no matter what I tried, even full reinstall using homebrew. I'm able to login to this machine using boot2docker ssh, I can c...
ادامه مطلب
I have a possible theory for this. When you run the application as $ rake resque:work QUEUE='*' & [1] 13031 The application inteally does a fork+exit, to run in background. C code equivalent of that would be: if(fork()) exit(0); So, the process with PID==13031 will spawn a child process & exit itself. The child will keep running in background & will be inherited by the init process (PID==1).You can see if this is the case, press another enter key after starting the rake command...
ادامه مطلب
So I have a systemd service called startup.service: [Unit] Description=startup scripts [Service] Type=oneshot ExecStart=/home/user/Documents/Tools/Scripts/startup.sh [Install] WantedBy=multi-user.target that calls a script called startup.sh: #! /bin/sh - DIR='/home/user/Documents/Tools/Scripts' $DIR/audio.sh $DIR/powertop.sh $DIR/xinput.sh which calls a script called xinput.sh: export DISPLAY=:0.0 if xinput set-prop 11 297 -107 -107; then echo "done!" fi When I run startup.sh as root, xi...
ادامه مطلب
I have setup Obnam backup to do an sftp backup of the system on an exteal server. When I run the command it executes properly. The way it connects to the sftp is with my ssh key. And it encrypts the content with my GPG key. I am trying to get systemd to execute it automatically everyday. So I have a backup.servive which looks like that: [Unit] Description="Online Backup" Requires=network-online.target After=network-online.target [Service] User=my_user ExecStart=/path/to/my/backup/script And ...
ادامه مطلب
I'm trying to use Openbox with an autostart script as well as a separate copy of "rc.xml" (this is to be able to have multiple configurations on the same computer, but that's not relevant). Let's say this file is called "custom-rc.xml". How do I make Openbox use that one instead of "rc.xml"? By doing some browsing through my filesystem I found that the script "openbox-session" contained this code: exec /usr/bin/openbox --startup "/usr/lib/x86_64-linux-gnu/openbox-autostart OPENBOX" "$@" The a...
ادامه مطلب
Could someone help me with this problem? It seems like i cant execute daemon.sh file. The permission about the allow execution of the file is ticked and I tried chmod +x path/of/daemon.sh as well. It doesn't work still. root@dsi-VirtualBox:/sbin# java.lang.NullPointerException at java.io.File.<init>(File.java:277) at org.opendedup.sdfs.network.ClusteredHCServer.setup(ClusteredHCServer.java:115) at org.opendedup.sdfs.network.ClusteredHCServer.init(ClusteredHCServer.java:198) ...
ادامه مطلب
With recent versions of debian using systemd, it is no longer possible to view the stdout boot messages with boodlogd The instructions at systemd debugging don't say how to do this either. So how does one see the exact on-screen stdout/stderr log messages from the boot? Let's block ads! بخوانید...
ادامه مطلب
For some service unit files the unit file name does not correspond to the name of the daemon. Example postfix. The unit file is called postix.service but the underlying daemons launched are named "master" (main daemon) and qmgr, tlsmgr (helper daemons). Looking for a way to get the unit name based on any of the daemon names. Using systemctl status postfix (as an example) I can see that it shows the processes it has spawned. Using systemctl --all status I can get everything .... but just a plain ...
ادامه مطلب
I'm running systemd 229-3 on an up-to-date Arch Linux installation. Lightdm is launched on startup, and starts my XFCE desktop environment. Furthermore, laptop-mode-tools is installed and run on startup. Sometimes, after logging in, I experience huge reaction times on my system, and I already noticed a couple of times, that systemd with high CPU usage is causing them. How can I figure out, what service is the reason of that high CPU usage? I've already tried to disable laptop-mode.service, but t...
ادامه مطلب
I have changed the hostname in avahi-daemon.conf file in /etc/avahi so as that the host-name=osmc and it's uncommented. When I do a sudo systemctl status avahi-daemon -l I get the following; ● avahi-daemon.service - Avahi mDNS/DNS-SD Stack Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled) Active: active (running) since Fri 2016-03-18 23:21:31 GMT; 9h ago Main PID: 1298 (avahi-daemon) Status: "avahi-daemon 0.6.31 starting up." CGroup: /system.slice/avahi-daemon.service ├─...
ادامه مطلب
When doing systemctl start site.service I get a Segmentation fault (core dumped) from uwsgi. If i run this as separate commands, uwsgi runs fine. This is the .service file: [Unit] Description = Site start. [Service] #User = gabriel <--- comment or not, the same #Group = http <--- comment or not, the same Type = oneshot ExecStart = /bin/bash -c 'cd /var/www/KRAKEN/public/site;source bin/activate;uwsgi --ini uwsgi.ini --mount /site=app.py -w app --manage-script-name' [Install] W...
ادامه مطلب
My ~/.config/autostart/ contains the following two files: dbus-session-addr-save.desktop: [Desktop Entry] Type=Application Name=umf Exec=/home/<my-useame>/.config/autostart/dbus-session-addr-save.sh Icon=system-run Comment= dbus-session-addr-save.sh: echo ${DBUS_SESSION_BUS_ADDRESS} > /tmp/.umf_<my-useame> So the desktop file seems to launch the script and the script writes dbus information into a world-readable file. Can somebody explain what this is good for? Is it safe to...
ادامه مطلب
Bananian 15.08 is based on Debian Jessie but still uses sysvinit instead of systemd. How to disable SysVinit and switch to systemd? ...
ادامه مطلب