Tag: 新贵

Ubuntu 13.10:如何禁用Nvidia图形(nouveau)?

我有一台安装了Ubuntu 13.10的MSI GS70笔记本电脑。 不幸的是,我的笔记本电脑有一个NVidia显卡,对我来说唯一的影响是风扇噪音恒定,笔记本电脑的高温和大功率耗电(powertop报告36-40W而不是24W )。 如何禁用此NVidia卡?

可以通过连接的设备触发upstart脚本吗?

当连接设备(外部磁盘)时,如何指定“启动”条件以运行upstart脚本?

使用upstart启动具有实时优先级的jackd

我正在尝试使用uptstart脚本在启动时使用实时优先级启动jackd但到目前为止没有成功。 我正在使用ubuntu服务器14.04。 我的新贵版本是1.12.1。 我在脚本中使用的用户和组被允许使用实时优先级,但是当我运行看起来不重要的我的upstart脚本时。 每当我尝试运行它时,我会在upstart日志中得到它: jackdmp 1.9.10 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2013 Grame. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Cannot create thread 1 Operation not permitted Cannot create thread 1 Operation not […]

管理Upstart和SysV样式的init.d脚本之间的依赖关系

我有一个必须在运行SysV样式的init.d脚本之前运行的Upstart作业。 init.d脚本配置为在运行级别2,3,4和5中以优先级20启动。 如何让Upstart作业比init.d脚本更早启动?

Ubuntu 12.04,为什么服务procps启动不启动procps?

我一直在尝试在/etc/sysctl.conf进行一些设置,以便在重新启动时生效。 所以,我在运行Ubuntu 12.04 LTS 64bit的节点上以root用户身份执行了以下操作 # service procps status procps stop/waiting # service procps start procps stop/waiting 无论我如何尝试。 /etc/init/procps是库存,如下所示。 我还没碰过它(不熟悉暴发户)。 # procps – set sysctls from /etc/sysctl.conf # # This task sets kernel sysctl variables from /etc/sysctl.conf and # /etc/sysctl.d description “set sysctls from /etc/sysctl.conf” instance $UPSTART_EVENTS env UPSTART_EVENTS= start on virtual-filesystems or static-network-up task […]

upstart服务给’chdir:command not found’错误

我已经创建了一个名为watch_folder.conf的upstart conf脚本,我已经在一些ubuntu安装上成功使用了但是由于某种原因我从以下代码中收到错误: #/etc/init/watch_folder.conf description “watch folder service” author “Jonathan Topf” start on startup stop on shutdown respawn respawn limit 99 5 script chdir /home/jon/Dropbox/Render\ Farm\ 1/appleseed/bin exec /usr/bin/python ./watchfolder.py ../../data/ echo “watch_folder started” end script 如果我查看/var/log/upstart/watch_folder.log,我会看到以下内容 /proc/self/fd/9: line 2: chdir: command not found /proc/self/fd/9: line 2: chdir: command not found /proc/self/fd/9: line 2: chdir: command […]

在启动/关闭时监视连接/分离EBS卷和弹性IP的新手事件是什么?

我正在Amazon EC2上设置一个Ubuntu实例,我正在尝试对其进行配置,以便在启动时自动附加EBS卷并获取弹性IP地址,并在关机时自动释放这些资源。 我发现各种init脚本可以满足我的需求,但我真的很喜欢使用upstart作业,这样我就可以通过cloud-init自动安装它了。 我从这次交流中了解到,我想监督开始工作的事件是清醒和特立独行 start on stopped cloud-run-user-script 并为了natty start on stopped cloud-final 这真的很准确吗? 此外,监控停止工作的正确事件是什么(包括卸载和拆卸EBS卷并释放弹性IP)?

启动时出现空白屏幕 – 来自Upstart的错误16.04

当我启动时,我看到x-windows,我可以在其中输入我的登录信息,然后它给我一个空白的桌面背景,在那里我看到鼠标指针而没有别的。 我可以切换到TTY。 我在Ubuntu 15.10和16.04上遇到这些错误 $ cat ~/.xsession-errors openConnection: connect: No such file or directory cannot connect to brltty at :0 upstart: Failed to spawn upstart-udev-bridge main process: unable to execute: No such file or directory upstart: unity-gtk-module pre-start process (1418) terminated with status 127 upstart: dbus pre-start process (1425) terminated with status 127 关于我能做什么的任何建议?

在Ubuntu上使用Upstart的Python服务

我想创建使用Upstart将心跳服务(python脚本)部署为服务。 我的理解是我要添加一个带有以下内容的/etc/init/myheartbeatservice.conf 。 # my heartbeat service description “Heartbeat monitor” start on startup stop on shutdown script exec /path/to/my/python/script.py end script 我的脚本启动另一个服务进程并监视进程并定期向外部服务器发送心跳。 startup和shutdown正确的事件? 我的脚本也创建了一个新线程。 我假设我还需要将fork daemon添加到我的conf文件中? 谢谢。

新贵跟踪错误的过程PID – 而不是重生

我最初在StackOverflow上问过这个问题。 然后意识到这可能是一个更好的地方。 我有bluepill设置来监控我的delayed_job进程。 (Ruby On Rails应用程序) 使用Ubuntu 12.10。 我正在使用Ubuntu的upstart启动并监控bluepill服务。 我的upstart配置如下( /etc/init/bluepill.conf )。 description “Start up the bluepill service” start on runlevel [2] stop on runlevel [016] expect daemon exec sudo /home/deploy/.rvm/wrappers//bluepill load /home/deploy/websites//current/config/server/staging/delayed_job.bluepill # Restart the process if it dies with a signal # or exit code not given by the ‘normal exit’ stanza. respawn […]