Recent Questions

متن مرتبط با «systemd autostart daemon» در سایت Recent Questions نوشته شده است

Systemd: Autostart service after mongodb

  • نیلوبلاگ

    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...

    ادامه مطلب
  • Where to find documentation about systemd-networkd status codes?

  • نیلوبلاگ

    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! بخوانید...

    ادامه مطلب
  • Configure S.M.A.R.T. daemon for NAS at home and suspending discs

  • نیلوبلاگ

    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...

    ادامه مطلب
  • collectd script does not run as daemon

  • نیلوبلاگ

    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...

    ادامه مطلب
  • Kernel boot time detailed analizis like Systemd

  • نیلوبلاگ

    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! بخوانید...

    ادامه مطلب
  • Systemd: hyphens in mount point

  • نیلوبلاگ

    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...

    ادامه مطلب
  • CPU usage of named daemon on CentOS 6

  • نیلوبلاگ

    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...

    ادامه مطلب
  • boot2docker Cannot connect to the Docker daemon. Is the docker daemon running on this host?

  • نیلوبلاگ

    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...

    ادامه مطلب
  • How to kill a daemon in Linux?

  • نیلوبلاگ

    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...

    ادامه مطلب
  • Shell script fails when executed by systemd service

  • نیلوبلاگ

    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...

    ادامه مطلب
  • Let systemd use password protected ssh and gpg keys

  • نیلوبلاگ

    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 ...

    ادامه مطلب
  • How to use custom configuration file in combination with autostart script in Openbox?

  • نیلوبلاگ

    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...

    ادامه مطلب
  • Unable to load daemon and service exit with a return value of 3

  • نیلوبلاگ

    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) ...

    ادامه مطلب
  • see the systemd boot logs?

  • نیلوبلاگ

    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! بخوانید...

    ادامه مطلب
  • Identify the systemd unit file from process name

  • نیلوبلاگ

    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 ...

    ادامه مطلب
  • systemd: cpu usage of services

  • نیلوبلاگ

    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...

    ادامه مطلب
  • avahi-daemon enabled but cannot resolve DNS

  • نیلوبلاگ

    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 ├─...

    ادامه مطلب
  • Uwsgi : Segmentation fault (core dumped) when running uwsgi in Systemd

  • نیلوبلاگ

    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...

    ادامه مطلب
  • What is ~/.config/autostart/dbus-session-addr-save.sh good for?

  • نیلوبلاگ

    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...

    ادامه مطلب
  • How to install systemd on Bananian 15.08

  • نیلوبلاگ

    Bananian 15.08 is based on Debian Jessie but still uses sysvinit instead of systemd. How to disable SysVinit and switch to systemd? ...

    ادامه مطلب